make print with quotation marks [closed]

-3

I need to write a help program, but I need to use phrases like, and type a "Cabinet" ... and I can not use the "" in print, because they close the box and open another, as it does to solve that? Thank you

    
asked by anonymous 28.03.2018 / 13:33

1 answer

2

So:

System.out.println("\"Armário\"");
The backslash (reserved char) overrides the special characters after it and considers it as a normal char

    
28.03.2018 / 19:39