KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > SynchTestRet


1 public class SynchTestRet {
2         
3     public static void main(String JavaDoc[] args) {
4         SynchTestRet t = new SynchTestRet();
5         run(t);
6     }
7
8     public static int run(SynchTestRet t){
9         synchronized(t) {
10             System.out.println("made it!");
11             return 4;
12         }
13         
14     }
15 }
16
Popular Tags