I want to remove/comment all the occurrences of System.out.println from my java code. This System.out.println may be inside if ,
System.out.println
if
In case you do not use IDE, on Linux:
sed '/System.out.println/d' %YOUR_PROJ_DIR%/*.java
on Windows you can do the same if you have a cygwin installed.