14 Replies Latest reply on Nov 22, 2007 10:41 PM by 807600

    how the println this character??

      I want to print out this line >>> *"hello world!"*
      but i want to include the double quotation mark.
      if i directly type it on the println line, the complier will automatically cancel off
      so I try the make it as a variable,
      but the output is:
      *[C@4600c0hello world![C@4600c0*

      public class aa {
        public static void main (String[] args){
          final char [] dq = new char ['"'];
          System.out.println(dq + "hello world!" + dq);