import java.io.*; class TestStandardIO{ public static void main(String[] args) throws IOException { InputStreamReader isr = new InputStreamReader(System.in); BufferedReader stin = new BufferedReader(isr); System.out.print("Please enter a string: "); String s = stin.readLine(); System.out.println("You typed \"" + s + "\""); } }