if a method is called but the method calls System.out.print(); and prints on the console, is there any way to disable printing on console for that specific method calls and enable again
Asked
Active
Viewed 64 times
0
-
1Redirect System.out to a location other than the standard output, such as to a file. – Hovercraft Full Of Eels Oct 09 '20 at 01:41
-
What you seem to really be looking for is passing an `InputStream` as a method parameter. – chrylis -cautiouslyoptimistic- Oct 09 '20 at 01:58