Skip to content

Commit 03c3ff7

Browse files
committed
added HelloWorld Example and Solution!
1 parent e2308f5 commit 03c3ff7

File tree

3 files changed

+42
-1
lines changed

3 files changed

+42
-1
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,7 @@
33

44
# ignore files
55
c4t-java.iml
6-
.DS_Store
6+
.DS_Store
7+
8+
# ignore prettier files
9+
.prettierrc.json
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package com.codefortomorrow.beginner.chapter1.practice;
2+
3+
/**
4+
* @author ArmeetJatyani
5+
* March 2021
6+
*
7+
* Welcome to Java!
8+
* This may be your first ever java program!
9+
* We'll begin your journey with the infamous Hello World program!
10+
*/
11+
12+
// a class is an "object" where we will place all our code inside
13+
public class HelloWorld{
14+
// the main method (below) is the first thing that runs when your program is run
15+
public static void main(String[] args) {
16+
// write code here (replace the "" with "Hello World!")
17+
System.out.println("");
18+
}
19+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package com.codefortomorrow.beginner.chapter1.practice;
2+
3+
/**
4+
* @author ArmeetJatyani
5+
* March 2021
6+
*
7+
* Welcome to Java!
8+
* This may be your first ever java program!
9+
* We'll begin your journey with the infamous Hello World program!
10+
*/
11+
12+
// a class is an "object" where we will place all our code inside
13+
public class HelloWorld{
14+
// the main method (below) is the first thing that runs when your program is run
15+
public static void main(String[] args) {
16+
// write code here (replace the "" with "Hello World!")
17+
System.out.println("Hello World!");
18+
}
19+
}

0 commit comments

Comments
 (0)