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...
Type: Posts; User: lo22
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...
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
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...