Search:

Type: Posts; User: newbie

Search: Search took 0.16 seconds.

  1. [SOLVED] Re: Reading integers from a file, but it's only displaying the first number repeatedl

    Look up the Scanner API, specifically the hasNextInt() method.
    Scanner (Java 2 Platform SE 5.0)
  2. [SOLVED] Re: Reading integers from a file, but it's only displaying the first number repeatedl

    Well you're only reading from the file once, where you assign the first int to score, then all you do is print out that score variable 30 times.
Results 1 to 2 of 2