title: Listener to prevent System.out display on the screen
body: <p>I was doing my academic project and while building and testing i have put many println() statements.</p>
  
  <p>But when I had to submit all prints should not be displayed. </p>
  
  <p>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 ..</p>
  
  <p>thanks</p>