0

How can I output 'hello world' in java?

Im learning java but i dont know how to output some text.

28th Feb 2017, 9:19 PM
mirco.
mirco. - avatar
3 Answers
+ 4
System.out.println("hello world"); It prints a line of text and a line break afterwards.
28th Feb 2017, 9:21 PM
spotbot2k
spotbot2k - avatar
+ 4
System.out.print("Hello World"); it prints a line of text without a line break afterwards
28th Feb 2017, 9:29 PM
LordHill
LordHill - avatar
+ 2
thank you ;)
28th Feb 2017, 9:31 PM
mirco.
mirco. - avatar