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
14 changes: 8 additions & 6 deletions Counter.java
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
package samples;

import sl4j.logger.log;

public class Counter {
private int value;

public Counter() {
this.value = 0;
this.value = 4;
log.log("Counter created");
}

private 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;
}
}
10 changes: 5 additions & 5 deletions Example_v0.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}