// The "SimpleInOut" class. // DFStermole // Started 17 Sept 2005 // Completed 17 Sept 2005 // Prompt for string; Read string; Write string import java.io.*; public class SimpleInOut { public static void main (String args[]) throws IOException { String line; // The string typed by the user // Define input stream DataInputStream in = new DataInputStream (System.in); // Prompt the user for input System.out.println ("Type your name followed by the key."); // Get a line of input line = in.readLine (); // Output line of input System.out.println ( line ); } // main method } // SimpleInOut class