アットウィキロゴ

れんしゅうkkk

import java.io.*;

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

     String[] test = new String[1000];
     String str;
String x[]=new String[10];
     for(int i=0; i<10; 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年12月08日 19:50