package plus;
import tool.*;
public class pro {
int s,datanumber;
String[] data=new String[50000];
String[] memo=new String[50000];
int[] subx=new int[5000];
int number;
String[] subdata=new String[50000];
public static void main(String[] args) {
pro t=new pro();
}
pro(){
readfile sub=new readfile();
sub.makedata("ren.csv","UTF-8");
data=sub.data;
datanumber=sub.datanumber;
int sx=0;
for(s=1;s<datanumber+1;s++){
String[] x=data[s].split(",");
int h=0;
if(x[0].length()>0)h=h+1;
if(x[1].indexOf("201606")>-1)h=h+1;
if(x[2].length()>0)h=h+1;
if(h==3)sx=sx+1;
if(h==3)subx[sx]=s;
if(h==3)memo[sx]=data[s];
}
number=sx;
System.out.println(number);
int tr;
int n=0;
for(tr=1;tr<number+1;tr++){
readfile sub2=new readfile();
sub2.makedata("gdata/"+subx[tr]+".txt","UTF-8");
data=sub2.data;
datanumber=sub2.datanumber;
int m1=subx[tr];
System.out.println(m1+","+memo[tr]);
for(s=1;s<datanumber+1;s++){
n=n+1;
subdata[n]=memo[tr]+","+data[s];
}
}
writefile subx=new writefile();
subx.data=subdata;
subx.datanumber=n;
subx.makedata("201606.txt");
}
}
最終更新:2016年07月08日 01:07