Not to give it all away for free... Prompt by printing to System.out, of course. Read a line by wrapping System.in in an InputStreamReader and a BufferedReader in turn, then calling BufferedReader.readLine(). Then print the result to System.out.
Joined: Nov 01, 2003
Why not "give away for free", it's not that much of a program is it?