Skip to content
Merged

Bittu #220

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
16 changes: 16 additions & 0 deletions src/test/java/November/Adder.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package November;

public class Adder {
static int add(int a, int b) {
return a + b;
}

static int add(int a, int b, int c) {
return a + b + c;
}

public static void main(String[] args) {
System.out.println(Adder.add(11, 333));
System.out.println(Adder.add(11, 11, 11));
}
}
16 changes: 16 additions & 0 deletions src/test/java/November/ThisKeyword.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package November;

public class ThisKeyword {
static int i = 10;

public ThisKeyword() {
int i = 29;
System.out.println(this.i);
}

public static void main(String[] args) {
ThisKeyword obj = new ThisKeyword();
int i = 29;
System.out.println(i);
}
}
Binary file added target/test-classes/November/Adder.class
Binary file not shown.
Binary file added target/test-classes/November/ThisKeyword.class
Binary file not shown.