import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] argv) throws Exception { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); String str = ""; while (str != null) { System.out.print("> prompt "); str = in.readLine(); System.out.println(str); } } }