You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
465 B
16 lines
465 B
import java.io.BufferedReader;
|
|
import java.io.FileReader;
|
|
import java.io.IOException;
|
|
|
|
public class MainSevenBefore {
|
|
public static void main(String[] args) throws IOException {
|
|
BufferedReader br = new BufferedReader(new FileReader("scores.txt"));
|
|
int sum = 0;
|
|
String line;
|
|
while ((line = br.readLine()) != null) {
|
|
sum += Integer.parseInt(line);
|
|
}
|
|
br.close();
|
|
System.out.println(sum);
|
|
}
|
|
}
|
|
|