-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathOutput.java
More file actions
executable file
·24 lines (20 loc) · 751 Bytes
/
Output.java
File metadata and controls
executable file
·24 lines (20 loc) · 751 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package chapter_01.part_01;
// OUTPUT IN JAVA
public class Output {
public static void main(String[] args){
System.out.println("Hello world");
System.out.println("Am Learning Java");
System.out.println("It is so cool and Awesome");
/*
In Main.java File you learned that You can use a println() Method to
output / print text in Java, you can also add more println() Methods as you can.
Note that println() Will add a new line for each method.
*/
System.out.println("On a new line.");
System.out.print("This will not start at a new line.");
/*
When Working with text as above remember to insert your message in double quotes,
if you forget the double quotes an error occurs.
*/
}
}