import java.io.File; import java.io.FileNotFoundException; import java.util.Scanner; class Program01 { public static void main(String[] args) throws FileNotFoundException { File f = new File("adat.txt"); Scanner bef = new Scanner(f); while(bef.hasNextLine()) { System.out.println(Integer.parseInt(bef.nextLine())); } } }