1 package test; 2 3 public class Bar { 4 static boolean debug = false; 5 static int value = 0; 6 7 static { 8 if (System.getProperty ("DEBUG") != null) { 9 debug = true; 10 System.out.println ("Bar turning debugging on"); 11 } 12 } 13 14 public static void bar () { 15 if (System.currentTimeMillis() > 0) { 16 System.out.println("Bar.bar()"); 17 } 18 } 19 20 public static int getValue () { 21 return value; 22 } 23 } 24 | Popular Tags |