-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPrint.java
More file actions
17 lines (17 loc) · 723 Bytes
/
Print.java
File metadata and controls
17 lines (17 loc) · 723 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
public class Print {
public static void main(String[] args) {
//These two statements prints in same line
System.out.print("Welcome to Java ");
System.out.print("Programming");
//this statement continues in same line
System.out.println("How are you ?");
//this statement starts from new line
System.out.print("are you ready to learn by experiment?\n");
//this is also start from new line because \n
System.out.println("leave every thing focus");
System.out.println("do any thing with proper plan");
System.out.print("experiment it\n\n\n");
//here 3 new line are added
System.out.println("this is new line");
}
}