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:

 My Attempt to learn AI  GPT Generative Pretrained Transformer Created by Google in 2017 with the publication of the paper "Attention ...

Popular in last 30 days