I tried read from file double values and using Scanner with this aim.
Scanner
It throws InputMismatchException :
\"input.txt\" java.util.InputM
I found solution - need to create File object and then feed it to scanner class:
String filename = "input.txt"; File newFile = new File(filename); Scanner in = new Scanner(newFile);