import java.io.*; public class Arvutabel{ public static void main(String argumendid[]) throws IOException{ int a=0; int b=0; BufferedReader sisse=new BufferedReader( new FileReader("Arvutabel.txt") ); String rida=sisse.readLine(); while(rida!=null){ System.out.println(rida); b=Integer.parseInt(rida); a=a+b; rida=sisse.readLine(); } System.out.println(a); sisse.close(); } }