Saturday 31 January 2015

How to Print Double Quotes in JAVA


how to print double quotes in java

public class Display {
public static void main(String[] args) {
       String str="GANGA:"+"\"RIVER\"";
       System.out.print(str);

   }
}


Output:

GANGA:"RIVER"

No comments:

Post a Comment