quotation marks in Java string

quotation marks in Java string

use single ' or double " quote.
use backslash as escape character with double quote

ref‮re‬ to:lautturi.com
public class Lautturi {
	public static void main(String[] args) {
		String str = "\"lautturi1\"";
		System.out.println ("use backslash as escape character to put single \' or double \" quote in java string");
	}
}

output:

use backslash as escape character to put single ' or double " quote in java string
Created Time:2017-10-06 13:22:00  Author:lautturi