アットウィキロゴ

たれげrfg

tool.*;

public class pro {
int datanumber;
   String[] [[data]]=new String[50000];
   String[] a=new String[50000];
  String[] c=new String[50000];
   String[] t=new String[50000];
  String[] code=new String[50000];
  
   String[] dic=new String[50000];
    String[] dic_code=new String[50000];
    
     String[] dicx=new String[50000];
    
     String[] y1=new String[50000];
    String[] m1=new String[50000];
     String[] y2=new String[50000];
    String[] m2=new String[50000];
      String[] [[sta]]=new String[50000];
      
   public static void main(String[] args) {
       pro t=new pro();
   }
   
   pro(){
       
   
        readfile sub2=new readfile();
       sub2.makedata("[[ren]].csv","UTF-8");
       data=sub2.data;
       datanumber=sub2.datanumber;

       int s;
       
       
    [[for]](s=1;s<datanumber;s++){
      String[] x=data[s+1].split(",");
    code[s]=""+x[2];
    t[s]=x[1];
   a[s]=x[3];
   c[s]="";
   y1[s]="";
   m1[s]="";
   y2[s]="";
   m2[s]="";
   sta[s]=x[0];        
  if(x.length>4) c[s]=""+x[4].replace("△","");
  if(x.length>6) y1[s]=x[5];  
   if(x.length>6)   m1[s]=x[6];  
    if(x.length>8)   y2[s]=x[7];  
     if(x.length>8)   m2[s]=x[8];  
    }
    
    int dicnumber=0;
    
   readfile sub3=new readfile();
       sub3.makedata("dic.csv","UTF-8");
       data=sub3.data;
       dicnumber=sub3.datanumber;
 
       dicnumber=dicnumber-1;
       
          
    for(s=1;s<dicnumber;s++){
      String[] x1=data[s+1].split(",");
      dic[s]=x1[0];
      dic_code[s]=x1[1];
      
    }
     
    int sx;
    
     for(s=1;s<datanumber;s++){
     if(c[s].length()<3){    
     String c1="";
     for(sx=1;sx<dicnumber+1;sx++){
     if(a[s].equals(dic[sx]))c1=dic_code[sx];    
     }    
     c[s]=c1;
     }
     
     
     }
    
     for(s=1;s<datanumber;s++){
     data[s+1]=sta[s]+","+t[s]+","+code[s]+",";
     data[s+1]=data[s+1]+a[s]+","+c[s]+",";
     data[s+1]=data[s+1]+y1[s]+","+m1[s]+","+y2[s]+","+m2[s];
     }
     
       writefile sub4=new writefile();
       sub4.data=data;
       sub4.datanumber=datanumber;
       sub4.makedata("rev.csv");
       
     
     
       
   }
   
   
}
最終更新:2017年12月08日 19:07