Skip to content

Commit 9f12c97

Browse files
google-java-format complete
1 parent df475a2 commit 9f12c97

File tree

126 files changed

+3091
-3598
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

126 files changed

+3091
-3598
lines changed

.classpath

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
4+
<classpathentry kind="src" path="src"/>
5+
<classpathentry kind="output" path="bin"/>
6+
</classpath>

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,5 @@ hs_err_pid*
2626
.idea
2727
IntroductionToJavaProgramming.iml
2828
*.DS_Store*
29-
*out*
29+
*out*
30+
/bin/

.project

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>IntroductionToJavaProgramming</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.jdt.core.javabuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
</buildSpec>
14+
<natures>
15+
<nature>org.eclipse.jdt.core.javanature</nature>
16+
</natures>
17+
</projectDescription>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
eclipse.preferences.version=1
2+
encoding/<project>=UTF-8

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Introduction to Java Programming and Data Structures Comprehensive Version 12 by
44
This is the textbook I used to first learn programming in 2016. After having graduated and working as a software engineer for a few years now I am working through this textbook as a way to self gauge how I have progressed in my programming abilities with Java.
55

66
## Notes
7-
| Tool | Name | Version | Link |
8-
|------|--------------------------|---------------------------|-----------------------------------------------------|
9-
| IDE | Jet Brains IntelliJ IDEA | 2021.3 (Ultimate Edition) | https://www.jetbrains.com/idea/download/ |
10-
| JVM | Oracle Java JDK | 17.0.1 | https://www.oracle.com/java/technologies/downloads/ |
7+
| Tool | Name | Version | Link |
8+
|------|--------------------------|---------------------------|------------------------------------------------------|
9+
| IDE | Eclipse | 2023-12 R | https://www.eclipse.org/downloads/packages/installer |
10+
| JVM | Oracle Java JRE | 21.0.2 | Installed from Eclipse IDE installer |

src/com/github/jonathanbirkey/chapter01/Exercise02.java

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,17 @@
22
* @author : Jonathan Birkey
33
* @mailto : jonathan.birkey@gmail.com
44
* @created : 07Dec2021
5-
*
6-
* Exercise 1.2
7-
* (Display five messages) Write a program that displays Welcome to Java five
8-
* times.
9-
**/
5+
* <p>Exercise 1.2 (Display five messages) Write a program that displays Welcome to Java five
6+
* times.
7+
*/
108
package com.github.jonathanbirkey.chapter01;
119

1210
public class Exercise02 {
13-
public static void main(String[] args) {
14-
System.out.println("Welcome to Java");
15-
System.out.println("Welcome to Java");
16-
System.out.println("Welcome to Java");
17-
System.out.println("Welcome to Java");
18-
System.out.println("Welcome to Java");
19-
}
11+
public static void main(String[] args) {
12+
System.out.println("Welcome to Java");
13+
System.out.println("Welcome to Java");
14+
System.out.println("Welcome to Java");
15+
System.out.println("Welcome to Java");
16+
System.out.println("Welcome to Java");
17+
}
2018
}

src/com/github/jonathanbirkey/chapter01/Exercise03.java

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,16 @@
22
* @author : Jonathan Birkey
33
* @mailto : jonathan.birkey@gmail.com
44
* @created : 07Dec2021
5-
*
6-
* Exercise 1.3
7-
* (Display a pattern) Write a program that displays the following pattern:
8-
* J A V V A
9-
* J A A V V A A
10-
* J J AAAAA V V AAAAA
11-
* JJ A A V A A
12-
**/
5+
* <p>Exercise 1.3 (Display a pattern) Write a program that displays the following pattern: J A
6+
* V V A J A A V V A A J J AAAAA V V AAAAA JJ A A V A A
7+
*/
138
package com.github.jonathanbirkey.chapter01;
149

1510
public class Exercise03 {
16-
public static void main(String[] args) {
17-
System.out.println(" J A V V A ");
18-
System.out.println(" J A A V V A A ");
19-
System.out.println("J J AAAAA V V AAAAA ");
20-
System.out.println(" JJ A A V A A");
21-
}
11+
public static void main(String[] args) {
12+
System.out.println(" J A V V A ");
13+
System.out.println(" J A A V V A A ");
14+
System.out.println("J J AAAAA V V AAAAA ");
15+
System.out.println(" JJ A A V A A");
16+
}
2217
}

src/com/github/jonathanbirkey/chapter01/Exercise04.java

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,17 @@
22
* @author : Jonathan Birkey
33
* @mailto : jonathan.birkey@gmail.com
44
* @created : 07Dec2021
5-
*
6-
* Exercise 1.4
7-
* (Print a table) Write a program that displays the following table:
8-
* a a^2 a^3
9-
* 1 1 1
10-
* 2 4 8
11-
* 3 9 27
12-
* 4 16 64
13-
**/
5+
* <p>Exercise 1.4 (Print a table) Write a program that displays the following table: a a^2 a^3
6+
* 1 1 1 2 4 8 3 9 27 4 16 64
7+
*/
148
package com.github.jonathanbirkey.chapter01;
159

1610
public class Exercise04 {
17-
public static void main(String[] args) {
18-
System.out.println("a\ta^2\ta^3");
19-
System.out.println("1\t1\t1");
20-
System.out.println("2\t4\t8");
21-
System.out.println("3\t9\t27");
22-
System.out.println("4\t16\t64");
23-
}
11+
public static void main(String[] args) {
12+
System.out.println("a\ta^2\ta^3");
13+
System.out.println("1\t1\t1");
14+
System.out.println("2\t4\t8");
15+
System.out.println("3\t9\t27");
16+
System.out.println("4\t16\t64");
17+
}
2418
}

src/com/github/jonathanbirkey/chapter01/Exercise05.java

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,14 @@
22
* @author : Jonathan Birkey
33
* @mailto : jonathan.birkey@gmail.com
44
* @created : 07Dec2021
5-
*
6-
* Exercise 1.5
7-
* (Compute expressions) Write a program that displays the result of
8-
* (9.5 * 4.5 - 2.5 * 3)/(45.5 - 3.5)
9-
**/
5+
* <p>Exercise 1.5 (Compute expressions) Write a program that displays the result of (9.5 * 4.5
6+
* - 2.5 * 3)/(45.5 - 3.5)
7+
*/
108
package com.github.jonathanbirkey.chapter01;
119

1210
public class Exercise05 {
13-
public static void main(String[] args) {
14-
double result = (9.5 * 4.5 - 2.5 * 3)/(45.5 - 3.5);
15-
System.out.println(result);
16-
}
11+
public static void main(String[] args) {
12+
double result = (9.5 * 4.5 - 2.5 * 3) / (45.5 - 3.5);
13+
System.out.println(result);
14+
}
1715
}

src/com/github/jonathanbirkey/chapter01/Exercise06.java

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,13 @@
22
* @author : Jonathan Birkey
33
* @mailto : jonathan.birkey@gmail.com
44
* @created : 07Dec2021
5-
*
6-
* Exercise 1.6
7-
* (Summation of a series) Write a program that displays the result of
8-
* 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9
9-
**/
5+
* <p>Exercise 1.6 (Summation of a series) Write a program that displays the result of 1 + 2 + 3
6+
* + 4 + 5 + 6 + 7 + 8 + 9
7+
*/
108
package com.github.jonathanbirkey.chapter01;
119

1210
public class Exercise06 {
13-
public static void main(String[] args) {
14-
System.out.println(1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9);
15-
}
11+
public static void main(String[] args) {
12+
System.out.println(1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9);
13+
}
1614
}

0 commit comments

Comments
 (0)