From 5a40abeae9d032ba34936b78a426f9c5ceb10e88 Mon Sep 17 00:00:00 2001 From: Phillip Pavlich Date: Sun, 12 Apr 2020 13:12:28 -0400 Subject: [PATCH 1/5] Update counter.java --- Counter.java | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/Counter.java b/Counter.java index c8ef943..754d2e2 100644 --- a/Counter.java +++ b/Counter.java @@ -1,20 +1,22 @@ package samples; -import sl4j.logger.log; - public class Counter { - private int value; + public int value; public Counter() { - this.value = 0; + this.value = 4; log.log("Counter created"); } + public int reset(){ + return this.value = 0; + } + public int increment(){ return ++this.value; } - - public int reset(){ - return this.value = 0; + + public double secretVal(){ + return 4.56; } } From bf65a0836ff9be32098524a7e1fa29da1eeb26a4 Mon Sep 17 00:00:00 2001 From: Phillip Pavlich Date: Sun, 12 Apr 2020 13:13:03 -0400 Subject: [PATCH 2/5] Example V0 update --- Example_v0.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Example_v0.java b/Example_v0.java index 8d5507a..14bd8a5 100644 --- a/Example_v0.java +++ b/Example_v0.java @@ -14,6 +14,6 @@ public int fcn(){ } public int test(){ - return A.Z * 5; + return A.Z * 6; } } From ff89998ad17c714befd2b202179548e4d5e69852 Mon Sep 17 00:00:00 2001 From: Phillip Pavlich Date: Sun, 12 Apr 2020 13:29:37 -0400 Subject: [PATCH 3/5] Update V0 again --- Example_v0.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Example_v0.java b/Example_v0.java index 14bd8a5..b82a763 100644 --- a/Example_v0.java +++ b/Example_v0.java @@ -14,6 +14,6 @@ public int fcn(){ } public int test(){ - return A.Z * 6; + return A.Z / 5; } } From eabcf04c58892f9701744205a2a515af057f83ce Mon Sep 17 00:00:00 2001 From: Phillip Pavlich Date: Sun, 12 Apr 2020 13:32:20 -0400 Subject: [PATCH 4/5] v0 update again --- Example_v0.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Example_v0.java b/Example_v0.java index b82a763..56d1ad4 100644 --- a/Example_v0.java +++ b/Example_v0.java @@ -3,17 +3,17 @@ import java.util.Random; public class A { - private static int Z; + private static int val; public A() { - A.Z = 5; + A.val = 5; } public int fcn(){ - return A.Z * 5; + return A.val * 5; } - public int test(){ - return A.Z / 5; + protected int test(){ + return A.val * 5; } } From 72b7f9aeb5c610164e324387dbf52244dc00bdc6 Mon Sep 17 00:00:00 2001 From: Phillip Pavlich Date: Sun, 12 Apr 2020 13:44:04 -0400 Subject: [PATCH 5/5] update counter in demo --- Counter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Counter.java b/Counter.java index 754d2e2..5167bb0 100644 --- a/Counter.java +++ b/Counter.java @@ -1,14 +1,14 @@ package samples; public class Counter { - public int value; + private int value; public Counter() { this.value = 4; log.log("Counter created"); } - public int reset(){ + private int reset(){ return this.value = 0; }