Replace the System.out object in the main method with your own reader wrapper.
Your reader wrapper should display a contextual ad after every other call to println.
Call testString's existing printSomething() method.
Restore the System.out variable back to the original stream.
Ad text: "CodeGym - o
Contextual advertising
- 12
Locked
Comments (1)
- Popular
- New
- Old
You must be signed in to leave a comment
Baurzhan Konurbayev
16 August 2020, 01:53
However, test would still require to create PrintStream with ByteArrayOutputStream.
0