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
15 changes: 11 additions & 4 deletions Example_v0.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/**
Class A that supports adding and subtracting
*/
public class A {
private static int X;
private static int Y = 5;
Expand All @@ -6,23 +9,27 @@ public A(){
A.X = 5;
}

/**Javadoc
Multiplication of field X and Y
@return int multiplication result
*/
public int fcn(){
return A.X * A.Y;
}

public int test(){
private int test(){
return A.X * A.Y;
}

public int test(){
return 15 + 26;
public int test2(){
return 25 + 31;
}

public int test3(){
return 999 - 25;
}

public int test4(){
public int test5(){
return 999 - 25;
}
}
20 changes: 12 additions & 8 deletions Example_v1.java
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
public class B {
private static int first;
import java.util.ArrayList;
import java.io.*;
import java.awt.*;

public class C {
private static int firstVal;
private static int second = 5;
private static int third = 52;

public B(){
B.first = 21;
public C(){
C.firstVal = 45;
}

public int add(){
return B.first + B.second;
public int subtract(){
return C.firstVal - C.second;
}

public int mult(){
return B.first * B.second;
public int multiply(){
return C.firstVal * C.second;
}
}
4 changes: 4 additions & 0 deletions newCode.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
public class K {
private static int L;

}
8 changes: 8 additions & 0 deletions other files/Bexamples.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
public class F {
private static int Z;

public F() {
F.Z = 11;
}

}