12
任務
Java Core, 等級 9, 課堂 8
Reader wrapper
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
6
任務
Java Core, 等級 9, 課堂 8
Reader Wrapper 2
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 replace all "te" substrings with "??".
Call testString's existing printSomething() method.
Restore the System.out variable back to the original stream.
Display
6
任務
Java Core, 等級 9, 課堂 8
Output only digits
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 output only digits.
Call testString's existing printSomething() method.
Restore the System.out variable back to the original stream.
Display the modified string
12
任務
Java Core, 等級 9, 課堂 8
Problem solving
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 output the solution to the console.
Call testString's existing printSomething() method.
Restore the System.out variable back to the original stream.
Possible o
12
任務
Java Core, 等級 9, 課堂 8
Duplicate text
Read a file name from the console.
Replace the main method's System.out object with your own reader wrapper similar to the one shown in the lesson.
Your reader wrapper must output all text to both the console and a file whose name you have read.
Call testString's existing printSomething() method.
Re