Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PrintStream sysOut;
- final ByteArrayOutputStream outContent = new ByteArrayOutputStream();
- sysOut = System.out;
- System.setOut(new PrintStream(outContent));
- System.setOut(sysOut);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement