How can I make Java print "Hello"
?
When I type System.out.print("Hello");
the output will be Hello
. What I am looking for is "Hello"
with the quotes(""
).
How can I make Java print "Hello"
?
When I type System.out.print("Hello");
the output will be Hello
. What I am looking for is "Hello"
with the quotes(""
).
There are two easy methods:
\
before double quotes.''
instead of"
For example: