P
peczcyberworld
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
}
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
}