[SOLVED] What am I doing wrong?
Hi all I have included the excerpt of the code I'm working with for an assignment and I can't understand why it is not accepting an input from the terminal:
there is a little bit of stuff that would normally happen after that, but this thing is not allowing me to enter an input. Why would it do that?
if (choice == '1')
System.out.print("random string ");
BufferedReader crazy = new BufferedReader (new InputStreamReader(System.in));
info = crazy.readLine();
When I move it out of the 'if' statement it works just fine, is there any reason why this statement shouldn't function within an 'if'?