Skip to content

Commit 05a19fb

Browse files
authored
ch01
1 parent 01e3d4d commit 05a19fb

3 files changed

Lines changed: 28 additions & 28 deletions

File tree

ch01/Goodbye.java

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
/**
2-
* Example program that demonstrates print vs println.
3-
*/
4-
public class Goodbye {
5-
6-
/**
7-
* Prints a greeting.
8-
*/
9-
public static void main(String[] args) {
10-
System.out.print("Goodbye, "); // note the space
11-
System.out.println("cruel world");
12-
}
13-
14-
}
1+
/**
2+
* Example program that demonstrates print vs println.
3+
*/
4+
public class Goodbye {
5+
6+
/**
7+
* Prints a greeting.
8+
*/
9+
public static void main(String[] args) {
10+
System.out.print("Goodbye, "); // note the space
11+
System.out.println("cruel world");
12+
}
13+
14+
}

ch01/Hello.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
public class Hello {
2-
3-
public static void main(String[] args) {
4-
// generate some simple output
5-
System.out.println("Hello, World!");
6-
}
7-
8-
}
1+
public class Hello {
2+
3+
public static void main(String[] args) {
4+
// generate some simple output
5+
System.out.println("Hello, World!");
6+
}
7+
8+
}

ch01/HelloWorld.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
public class HelloWorld{
2-
public static void main(String[] args){
3-
System.out.println("Hello World!"); //prints Hello World!
4-
System.out.println("What's up?");
5-
}
6-
}
1+
public class HelloWorld{
2+
public static void main(String[] args){
3+
System.out.println("Hello World!"); //prints Hello World!
4+
System.out.println("What's up?");
5+
}
6+
}

0 commit comments

Comments
 (0)