Scanner skipping .hasNextDouble()
I am trying to read several doubles from a file and save them in an array. The first number in the file is an integer, which should then determine the size of the array. This works. but when I try to read in the doubles afterwards, I get a false return and it skips the loop. what could be the reason for this?