Results 1 to 3 of 3
  1. #1
    carl is offline Member
    Join Date
    Jul 2007
    Posts
    35
    Rep Power
    0

    Default Help with BufferedReader in java

    Hi, I believe i have this right but not sure but here are the lines i am not sure off.
    Java Code:
    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.
    Thanks.

  2. #2
    cruxblack is offline Senior Member
    Join Date
    Jul 2007
    Posts
    130
    Rep Power
    0

    Default

    Just some typo
    Java Code:
    userResponse.equals("1");
    Everything else just right as long as u didn't forgot to put the correct import :D

  3. #3
    nitinborge5 is offline Member
    Join Date
    Jul 2007
    Posts
    10
    Rep Power
    0

Similar Threads

  1. How to use BufferedReader?
    By ProgramBeginner in forum New To Java
    Replies: 4
    Last Post: 10-11-2011, 02:56 PM
  2. Reading int values using BufferedReader
    By Java Tip in forum Java Tip
    Replies: 2
    Last Post: 01-24-2008, 07:26 PM
  3. Reading text from a URL using BufferedReader
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 12-26-2007, 10:17 AM
  4. BufferedReader .mark(int readAheadLimit)
    By ShoeNinja in forum New To Java
    Replies: 1
    Last Post: 11-16-2007, 10:58 PM
  5. BufferedReader empty
    By Peter in forum Advanced Java
    Replies: 2
    Last Post: 07-02-2007, 06:52 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •