PDA

View Full Version : Java Help-User Response


Kura_kai
04-27-2005, 02:00 AM
ok i believe i have this right but not sure but here are the lines i am not sure off.
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
userResponse = in.readLine();
userResponse.equals("1")
Is this correct? i have the correct imports but not sure if i did the right typing.

suryad
04-27-2005, 04:50 AM
Err what exactly are you trying to achieve? Are you trying to print or display an error message or something similar if the content being read in readLine is 1? If so then your code is incomplete because it does not have an if statement. Please be more specific. I dont quite understand what you are trying to achieve.