アットウィキロゴ

せいり

package boj;
 
import tool.*;
import java.io.File;
 
public class pro {
 
 
    int s,datanumber;
    String[] data=new String[5000];
 
       String[] v=new String[5000];
    public static void main(String[] args) {
        pro te=new pro();
    }
 
    pro(){
 
        File f=new File("data");
        String[] fx=f.list();
 
        int tr;
        for(tr=0;tr<fx.length;tr++){
         readfile sub7=new readfile();
        sub7.makedata("data/"+fx[tr],"UTF-8");
        data=sub7.data;
        datanumber=sub7.datanumber; 
 
 
        String date=fx[tr].replace(".txt","");
 
        for(s=1;s<datanumber+1;s++){
       catchword sub2=new catchword();
       String str=sub2.makedata(data[s],"code_credit");
       int n=Integer.parseInt(str);
       v[n]=sub2.makedata(data[s],"value");
 
        }
 
 
         System.out.print(date);
        int sx;
         for(sx=1;sx<31;sx++){
           System.out.print(",");
           System.out.print(v[sx]);
        }
        System.out.println("");
 
 
        }
 
 
    }
 
 
 
 
}
 
最終更新:2016年06月13日 01:28