|
|||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
Debug.java | 25% | 40% | 50% | 36.4% |
|
1 |
/*
|
|
2 |
* Created on Mar 26, 2004
|
|
3 |
*
|
|
4 |
* To change the template for this generated file go to
|
|
5 |
* Window - Preferences - Java - Code Generation - Code and Comments
|
|
6 |
*/
|
|
7 |
|
|
8 |
/**
|
|
9 |
* @author Rohit Reddy
|
|
10 |
*
|
|
11 |
* To change the template for this generated type comment go to
|
|
12 |
* Window - Preferences - Java - Code Generation - Code and Comments
|
|
13 |
*/
|
|
14 |
public class Debug { |
|
15 |
public static boolean print = true; |
|
16 |
public static boolean pause = true; |
|
17 | 95 |
public static void print(String s) { |
18 | 95 |
if ( print )
|
19 | 95 |
System.out.println(s); |
20 |
} |
|
21 | 0 |
public static void pause() { |
22 | 0 |
if ( pause ) {
|
23 | 0 |
try { System.in.read(); } catch (Exception e) {}; |
24 |
} |
|
25 |
} |
|
26 |
} |
|
27 |
|
|