Replace the main method's System.out object with your own reader wrapper similar to the one shown in the lesson.
Your reader wrapper should convert all text to uppercase letters.
Call testString's existing printSomething() method.
Restore the System.out variable back to the original stream.
Display
Reader wrapper
- 12
Locked
Comments (1)
- Popular
- New
- Old
You must be signed in to leave a comment
Ewerton Backend Developer
5 July 2019, 02:15
Why should I create a ByteArrayOutputStream when I could just change PrintStream method? I just needed to create a dumb variable to pass the requirement...
0