title: Print character array to console in Java
body: <p>I'm having a problem when I try to parse a String to a char array.
  Here is my code:</p>
  
  <pre><code>line = scan.nextLine();
  System.out.println(line);               
  char line2[] = line.toCharArray();
  System.out.println(line2.toString());
  </code></pre>
  
  <p>So, as you can see, it's a simple code. </p>
  
  <p>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. </p>
  
  <p>Could someone help me?
  Thanks :D</p>