I want to remove/comment all the occurrences of System.out.println from my java code.
This System.out.println may be inside if ,
Update
As mentioned here create a NullOutPut
public final DevNull {
public final static PrintStream out = new PrintStream(new OutputStream() {
public void close() {}
public void flush() {}
public void write(byte[] b) {}
public void write(byte[] b, int off, int len) {}
public void write(int b) {}
} );
}
and replace System.out.print with DevNull.out.print
and later switch to logging framework that will allow you to handle stuff easily
Linked