Need a mechanism for turning ON/OFF SOPs

hi all,

please help me in finding a solution::: the scenario is I have some 20

classes and each has 2 methods and those methods has

System.out.println(" some text "). i need a mechanism to turn ON/ OFF

the SOPs to be printed in the console.

I have two possible ways

1. using javaw instead of java which will bypass the console.

2. using an if condition

for eg:[

class A

{

boolean a =false;

if(false)

{

System.out.println("some text");

}

}

but I need to have this IF condition check at each n every method is

there any possibility that I can have only one check that can turn

ON /OFF the SOPs

or please help me with other alternatives.

thanks in advance

[1080 byte] By [coolsnipstera] at [2007-11-27 1:49:32]
# 1
Double post. Reply here: http://forum.java.sun.com/thread.jspa?threadID=5163368
pbrockway2a at 2007-7-12 1:14:56 > top of Java-index,Java Essentials,New To Java...