📜  我如何在java代码示例中打印文本

📅  最后修改于: 2022-03-11 14:52:19.658000             🧑  作者: Mango

代码示例1
System.out.println("your text" );
/* this will print your message and then move your cursor to the next line */
/* or */
System.out.print("your text");
/* this will print your message and keep it on the same line */
/* to print multiple items in one statement us a + between them */
System.out.println("age: " + age);