Search:

Type: Posts; User: GregBrannon

Search: Search took 0.10 seconds.

  1. Re: Reading integeres from a .txt file, my method never terminates.

    I would have used only one Scanner object available as a resource throughout the class rather than having multiple objects passed to the methods. I found your filePrompter() method an interesting...
  2. Re: Reading integeres from a .txt file, my method never terminates.

    The while loop:

    while(data.hasNext())

    is an infinite loop. I believe the reason is because the enclosed if logic is not as you intended. Which 'if' is the 'else' supposed to belong to? Which...
  3. Re: Reading integeres from a .txt file, my method never terminates.

    What are the symptoms? Error messages? Post them. Post a sample run and describe what's wrong with it. Give us something to work with.
Results 1 to 3 of 3