diff --git a/AExample b/AExample new file mode 100644 index 0000000..aa90cfc --- /dev/null +++ b/AExample @@ -0,0 +1 @@ +public int x = 6; diff --git a/BExample.java b/BExample.java new file mode 100644 index 0000000..2252546 --- /dev/null +++ b/BExample.java @@ -0,0 +1 @@ +public String cool = "new comment"; diff --git a/Example_v0.java b/Example_v0.java index 8d5507a..bb8f944 100644 --- a/Example_v0.java +++ b/Example_v0.java @@ -1,19 +1,35 @@ -package controller; - -import java.util.Random; +package mypack; public class A { - private static int Z; + private static int X; + private static int Y = 5; - public A() { - A.Z = 5; + public A(){ + A.X = 5; } - + + /** Javadoc for fcn **/ public int fcn(){ - return A.Z * 5; + return A.X * A.Y; } - + public int test(){ - return A.Z * 5; + return A.X * A.Y; + } + + public int test2(){ + return 15 + 26; + } + + public int test3(){ + return 999 - 25; + } + + public int test4(){ + return 999 - 25; + } + + public String printHello(){ + return "Hello World!"; } } diff --git a/Example_v1.java b/Example_v1.java new file mode 100644 index 0000000..4e3d4a6 --- /dev/null +++ b/Example_v1.java @@ -0,0 +1,20 @@ +import java.util.List; +import java.util.regex.*; + +public class B { + private static int first; + private static int second = 5; + private static int third = 52; + + public B(){ + B.first = 21; + } + + public int add(){ + return B.first + B.second; + } + + public int mult(){ + return B.first * B.second; + } +} diff --git a/Other Files/CExample.java b/Other Files/CExample.java new file mode 100644 index 0000000..f590cfc --- /dev/null +++ b/Other Files/CExample.java @@ -0,0 +1 @@ +public int phil =9;