You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Gunnar Boström <Gu...@telia.se> on 2000/12/13 14:36:59 UTC
input to java task
Hi gurus,
I've problem with the java task. I would like to run a program which prompts
the user and then reads the answer, something like this:
System.out.print("Please enter your name: ");
BufferedReader br =
new BufferedReader(new InputStreamReader(System.in));
String name = br.readLine();
I don't get the prompt and the program hangs.
Any suggestion?
:-)