1 2 3 package SOFA.SOFAnode.Util; 4 5 18 class Debug { 19 22 public static int debug = 0; 23 24 31 public static void println( String a ) { 32 if( debug>0 ) System.out.println( a ); 33 } 34 35 public static void println( int level, String a ) { 36 if( debug>=level ) System.out.println( a ); 37 } 38 39 45 public static void println() { 46 if( debug>0 ) System.out.println(); 47 } 48 49 public static void println(int level) { 50 if( debug>=level ) System.out.println(); 51 } 52 53 61 public static void println( int level, int a ) { 62 if( debug>=level ) System.out.println( a ); 63 } 64 65 72 public static void print( String a ) { 73 if( debug>0 ) System.out.print( a ); 74 } 75 76 public static void print( int level, String a ) { 77 if( debug>=level ) System.out.print( a ); 78 } 79 80 88 public static void print( int level, int a ) { 89 if( debug>=level ) System.out.print( a ); 90 } 91 } 92 | Popular Tags |