Question: See if you can modify the method in the image so the period does not appear in the output stream. You cannot use the following

See if you can modify the method in the image so the period does not appear in the output stream.
You cannot use the following in the solution: if(c != '.') System.out.print(c);
You cannot use: if (c != '.') { foo(); System.out.print(c); }
1. The method below was presented in the course documents import java.io.* public class Driver t public static void main(Stringll args) throwson java.io.IOException f System.out.println("Enter string: ") foo)i public static void foou throws iava, io. IOException t harch System.in.readp System.out.print (c)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
