14 Replies Latest reply: Nov 22, 2007 4:41 PM by 807600 RSS

    how the println this character??

    807600
      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*


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