Search:

Type: Posts; User: lo22

Search: Search took 0.10 seconds.

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

    Well I have solved it now, so thanks a lot for the help! :)

    I had the wrong scanner object in my nested while loop, so instead of input.nextInt(), it should be data.nextInt(). And yeah the else...
  2. Re: Reading integeres from a .txt file, my method never terminates.

    Well as I stated in my post, the program simply stands idle not ever terminating. When I try and read this, .txt file:

    4 billy bob -2 18 2,54
    15 31 NotANumber

    true 'c' 27
  3. Reading integeres from a .txt file, my method never terminates.

    Ok so I have made this small program, where you can type in the directory of a file and then my program, can count the ints, compute the max, min, sum and average. I have two methods, one which can...
Results 1 to 3 of 3