Escape double quotes in Java

I wanted to escapes the double quotes for the following


"2015-03-30T18:32:00.000-05:00". 
This can be attained by using '\' in java
for (int j= 200;j<=201;j++){
     System.out.println("data"+j+".setTimeStamp(getDateFromXMLGregorianCalendarString(\"2015-03-30T18:32:00.000-05:00\").getMillis());");
}


Hope this helps :)

No comments:

 Python Basics How to check the version of Python interpreter mac terminal

Popular in last 30 days