Question: Can;t get this to work please help!!!! import java.io. BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.lang.*; import java.nio.charset. Standard Charsets; /** * The Main class
Can;t get this to work please help!!!!



import java.io. BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.lang.*; import java.nio.charset. Standard Charsets; /** * The Main class implements an application that reads lines from the standard input * and prints them to the standard output. public class Main { public static void main(String[] args) { try{ InputStreamReader reader=new InputStreamReader (System.in, Standard Charsets.UTF_8); BufferedReader in=new BufferedReader(reader); String line; String output_str=""; int index=0; while((line=in.readLine()) !=null) { if(line.equals("")) { break; } for(int i=0;i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
