diff --git a/Example_v0.java b/Example_v0.java index 05dc9ea..149575a 100644 --- a/Example_v0.java +++ b/Example_v0.java @@ -1,3 +1,6 @@ +/** +Class A that supports adding and subtracting +*/ public class A { private static int X; private static int Y = 5; @@ -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; } } diff --git a/Example_v1.java b/Example_v1.java index 69e97d8..078460f 100644 --- a/Example_v1.java +++ b/Example_v1.java @@ -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; } } diff --git a/newCode.java b/newCode.java new file mode 100644 index 0000000..ba1a530 --- /dev/null +++ b/newCode.java @@ -0,0 +1,4 @@ +public class K { + private static int L; + +} diff --git a/other files/Bexamples.java b/other files/Bexamples.java new file mode 100644 index 0000000..77d92a5 --- /dev/null +++ b/other files/Bexamples.java @@ -0,0 +1,8 @@ +public class F { + private static int Z; + + public F() { + F.Z = 11; + } + +}