CS计算机代考程序代写 public class Counter {

public class Counter {

private int value;

public Counter() {
value = 0;
}

public void increment() {
value++;
}

public int getValue() {
return value;
}

public void reset() {
value = 0;
}

public String toString() {
return “Counter: {value=”+value+”}”;
}
}