Another problem is the there is not a call to the hasNextDouble() method for each call to the nextDouble() method. They should be coded so the has... method is called before each call to next....
Type: Posts; User: Norm
Another problem is the there is not a call to the hasNextDouble() method for each call to the nextDouble() method. They should be coded so the has... method is called before each call to next....
I made my own data.txt file and then tried to change the program to have it work with the value of NbrLines that I posted above to make the testing easier. 49 lines is too many. 5 is enough for...
What is in the input file that is read?
Can you post the full contents of the programs output?
A suggestion to make the code easier for testing.
Instead of hard coding magic numbers like 48...
Are there other parts of the code that read the file up to 1620.5?
Can you make a small complete program that compiles, executes and shows the problem. There must be something else that isn't...
Are you saying the first number in the file is 1698.8?
Where is 1620.5 located in the file?
Is there a pattern between what is printed and what is in the file? For example it only prints every...