I'm having a problem when I try to parse a String to a char array. Here is my code:
line = scan.nextLine();
System.out.println(line);
char line2[] = line.toCharArray();
System.out.println(line2.toString());
So, as you can see, it's a simple code.
The problem is: line contains the string "00000001010010110100100000100000", but when I use "line.toCharArray", my char array receives "[C@7e243eed". I think it's receiving the line variable adress or something like that.
Could someone help me? Thanks :D