Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Lesson2-AddMethod/src/AddMethod.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

public class AddMethod {
public static void main(String[] args) {
int answer = 1+1;
System.out.println(" 1 + 1 = " + answer);
}
}
7 changes: 7 additions & 0 deletions Lesson3-Subtract/src/SubtractMethod.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

public class SubtractMethod {
public static void main(String[] args) {
int answer = 100-20;
System.out.println(" 100 - 20 = "+answer);
}
}
7 changes: 7 additions & 0 deletions Lesson4-Multiplication/src/MultiplicationMethod.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

public class MultiplicationMethod {
public static void main(String[] args) {
int answer = 3 * 5;
System.out.println(" 3 x 5 = "+answer);
}
}