アットウィキロゴ

にゅr

import java.io.*;

class pro
{
  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("入出力エラーです。");
     }
  }
}
最終更新:2010年09月28日 05:45