import java.io.*; // Imports the input/output classes class echo2 { // Start class echo2 public static void main (String[] args) throws IOException { // Start main method String delta; // Declares variable delta as a String InputStreamReader alpha = new InputStreamReader(System.in); BufferedReader charlie = new BufferedReader(alpha); // Keyboard input is fed into the program using System.in; // the input is passed to InputStreamReader; then it is passed to // BufferedReader and placed in object charlie System.out.println("Enter a line of text:"); // Requests user enter a line delta = charlie.readLine(); // Run the function readLine() on object charlie // to grab the input and place into String variable delta System.out.println("The line you entered was: " + delta); // Print to the screen what is in variable delta } // End main method } // End class echo2