public static void print() {
System.out.print("This is some text");
System.out.println();
}
\n creates a new line in Java. Don't use spaces before or after \n.
Example: printing It creates\na new line outputs
System.out.println("text")
沒有留言:
張貼留言