You just need backslash to escape:
System.out.println("\"" + s + "\" " + GM);
Output: "Juan" GOOD MORNING
1
solved how to separate string with special character in Java
You just need backslash to escape:
System.out.println("\"" + s + "\" " + GM);
Output: "Juan" GOOD MORNING
1
solved how to separate string with special character in Java