CS 5704 Fall 00 13 Synchronized Methods public class Value { private int current; synchronized public void increment() { current = current + 1; } synchronized public void decrement() { current = current - 1; } public int current() { return current } }
{}