public static void main(String[] args)
{
try{
BufferedReader br =
[[new]] BufferedReader(new FileReader("data.txt"));
int[] test = new int[8];
String str;
for(int i=0; i<8; i++){
str = br.readLine();
test[i] = Integer.parseInt(str);
}
br.close();
}
catch(IOException e){
System.out.println("入出力エラーです。");
}
}