Listener to prevent System.out display on the screen.

Posted by harshit on Stack Overflow See other posts from Stack Overflow or by harshit
Published on 2010-05-03T20:46:01Z Indexed on 2010/05/03 20:48 UTC
Read the original article Hit count: 276

Filed under:

Hi,

I was doing my academic project and while building and testing i have put many println() statements.

But when I had to submit all prints should not be displayed.

Can i implement something like listener which will be invoked when System.out is tried to be executed and prevents it from displaying. I dont know how feasible this idea is but just want to know whether its possible or not. I know i could have used a log file or write into a file but again its just a thought came into my mind if I have to disable SOP how can i do it ..

thanks

© Stack Overflow or respective owner

Related posts about java