アットウィキロゴ

だら

import java.io.*;

class pro
{
  public static void main(String[] args)
  {
     try{
        BufferedReader br =
          [[new]] BufferedReader(new FileReader("data.txt"));

        String[] test = new String[5];
        String str;
String x[]=new String[3];
        for(int i=0; i<5; i++){
           str = br.readLine();
       x=str.split(",");    
test[i]=x[0];
System.out.println(test[i]);
        }





        br.close();
     }
     catch(IOException e){
        System.out.println("入出力エラーです。");
     }
  }
}
最終更新:2010年09月28日 06:08