0% found this document useful (0 votes)
21 views1 page

Java Program for Echoing Input

This Java program reads a line of input from the user, stores it in a string variable, and then prints the input string back to the screen. It uses classes like InputStreamReader, BufferedReader to read from the standard input stream, stores the input in a string, and prints it using System.out.println.

Uploaded by

asifmechengr
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views1 page

Java Program for Echoing Input

This Java program reads a line of input from the user, stores it in a string variable, and then prints the input string back to the screen. It uses classes like InputStreamReader, BufferedReader to read from the standard input stream, stores the input in a string, and prints it using System.out.println.

Uploaded by

asifmechengr
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

//Echo line java program// import [Link]; import [Link]; import [Link].

IOException; public class EchoLine3 { public static void main(String[] args) throws IOException { InputStreamReader isr = new InputStreamReader([Link]); BufferedReader br = new BufferedReader(isr); String input = [Link](); [Link](input); } }

You might also like