Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Class Counter{
- Int a[] = new int[1];
- public synchronized inc(){
- a[0]++
- }
- Public synchronized getA(){
- Return a;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement