Search:

Type: Posts; User: iAce

Search: Search took 0.08 seconds.

  1. Replies
    8
    Views
    1,506

    Re: Reading Text Files Assignment [Scanner Method]

    Oh wow I'm mad that it does already. I didn't even notice. I added another counter variable and the code runs perfectly now. Thanks a lot bro. Much love.
  2. Replies
    8
    Views
    1,506

    Re: Reading Text Files Assignment [Scanner Method]

    I meant like how can I make it so that each line can be read one at a time to determine if it is equal to BB, BG, GB, or GG. I don't know how to do that.

    And that's another problem I have. I don't...
  3. Replies
    8
    Views
    1,506

    Re: Reading Text Files Assignment [Scanner Method]

    In Step 3, I know I'm using Scanner inFile = new Scanner(new File("test1.txt")); to read the text file while the while loop is going. It will terminate after the last line is read.

    My problem is...
  4. Replies
    8
    Views
    1,506

    Re: Reading Text Files Assignment [Scanner Method]

    Thanks for the reply. Usually the errors are just variables that I haven't declared yet. Here are the things I need to code this program correctly (I think).
    (1) Declare all variables.
    (2) Declare...
  5. Replies
    8
    Views
    1,506

    Reading Text Files Assignment [Scanner Method]

    I'm a beginner coder in Java and I'm confused about how to code this one assignment I have. If I can get any help, then it would be fantastic. :)

    I am using BlueJ.

    Assignment:
    Write a program...
Results 1 to 5 of 5