Monday, June 2, 2014

How to Print Double Quotes in Java

To print double quotes in Java, we can either use:



System.out.println("\"Hello\"");

Or:

System.out.println((char)34+"Hello"+(char)34) ;
Print Double Quotes in Java Step 1.jpg