# | Line 36 | Line 36 | public class SyncLastIndexOf { | |
---|---|---|
36 | static class RemovingThread extends Thread { | |
37 | ||
38 | public void run() { | |
39 | < | synchronized(v) { |
39 | > | synchronized (v) { |
40 | try { | |
41 | sleep(200); | |
42 | } catch (InterruptedException e) { | |
# | Line 46 | Line 46 | public class SyncLastIndexOf { | |
46 | } | |
47 | } | |
48 | ||
49 | < | public static void main(String args[]) { |
49 | > | public static void main(String[] args) { |
50 | Integer x = new Integer(1); | |
51 | v.addElement(x); | |
52 | new RemovingThread().start(); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |