how do i print text in java

Solutions on MaxInterview for how do i print text in java by the best coders in the world

showing results for - "how do i print text in java"
Célestin
24 Aug 2017
1System.out.println("your text" );
2/* this will print your message and then move your cursor to the next line */
3/* or */
4System.out.print("your text");
5/* this will print your message and keep it on the same line */
6/* to print multiple items in one statement us a + between them */
7System.out.println("age: " + age);