import java.io.*;

public class KeyboardReadEx {
	public static void main(String[] args) throws IOException{
	String CurLine = ""; // Line read from standard in
	           
	InputStreamReader converter = new InputStreamReader(System.in);
	BufferedReader in = new BufferedReader(converter);
	
	        
	while (!(CurLine.equals("quit"))){
		System.out.println("\n\nEnter a line of text (type 'quit' to exit): ");
		CurLine = in.readLine();
		if (!(CurLine.equals("quit"))){
			System.out.println("You typed: " + CurLine);
			}
		}
	}

}

