diff --git a/Lesson2-AddMethod/src/AddMethod.java b/Lesson2-AddMethod/src/AddMethod.java new file mode 100644 index 0000000..bbcd3bb --- /dev/null +++ b/Lesson2-AddMethod/src/AddMethod.java @@ -0,0 +1,7 @@ + +public class AddMethod { + public static void main(String[] args) { + int answer = 1+1; + System.out.println(" 1 + 1 = " + answer); + } +} diff --git a/Lesson3-Subtract/src/SubtractMethod.java b/Lesson3-Subtract/src/SubtractMethod.java new file mode 100644 index 0000000..a7f068e --- /dev/null +++ b/Lesson3-Subtract/src/SubtractMethod.java @@ -0,0 +1,7 @@ + +public class SubtractMethod { + public static void main(String[] args) { + int answer = 100-20; + System.out.println(" 100 - 20 = "+answer); + } +} diff --git a/Lesson4-Multiplication/src/MultiplicationMethod.java b/Lesson4-Multiplication/src/MultiplicationMethod.java new file mode 100644 index 0000000..0d0ad23 --- /dev/null +++ b/Lesson4-Multiplication/src/MultiplicationMethod.java @@ -0,0 +1,7 @@ + +public class MultiplicationMethod { + public static void main(String[] args) { + int answer = 3 * 5; + System.out.println(" 3 x 5 = "+answer); + } +}