I am new to Java and would greatly appreciate any help. Here is some code I am working on as basically a proof of concept. I am using a "throws FileNot FoundException" . The problem is that when i run the program nothing happens. There are no errors but there is also no output. This same code worked without the "for" statement for just the first number.
Here is the text file that it is reading from.
test.txt
Code:
Scanner reader = new Scanner(new FileReader("test.txt"));
for (i=0;i > 10;i++){
read = reader.nextDouble();
System.out.println(read);
}
test.txt
Code:
12.345 13.345 14.345 15.345 16.345 17.345 18.345 19.345 20.345 21.345
Comment