アットウィキロゴ

p988x

package cdtv;
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
 
import tool.*;
 
public class pro {
 
 String[] data=new String[6000];
    int s,datanumber;
    String[] name=new String[6000];
      String[] code=new String[6000];
      String[] dic=new String[6000];
 
    public static void main(String[] args) {
        pro te=new pro();
    }
 
    pro(){
 
       readx("t.csv");
 
       for(s=2;s<datanumber+1;s++){
      String[] x=data[s].split(",");
           name[s]=x[2];
       }
 
       int sx,delta=0;
        dic[0]="";
 for(s=2;s<datanumber+1;s++){
     int h=0;
 for(sx=1;sx<delta+1;sx++){
 if(name[s].equals(dic[sx]))h=100;
 }    
 if(h<60)delta=delta+1;
  if(h<60)dic[delta]=name[s];
 }
 
 
 
 
 int tr=5;
 for(tr=1;tr<delta+1;tr++){
  bing sub5=new bing();
 String c1=sub5.makedata(dic[tr]);
 
 check sub6=new check();
 String n1=sub6.makedata(c1);
 
 code[tr]="";   
 
  int h=0;
 if(dic[tr].equals(n1))h=100;
 
  if(h<50){
  wiki sub21=new wiki();
 String w1=sub21.makedata(dic[tr]);
 
 wiki sub22=new wiki();
 String w2=sub22.makedata(n1);
 
 if(w1.equals(w2))h=100;
  }
 
 if(h>50)code[tr]=c1;
 
  System.out.println(dic[tr]+","+code[tr]);
 }
 
 
 
  for(s=2;s<datanumber+1;s++){
     String c1="";
 for(sx=1;sx<delta+1;sx++){
 if(name[s].equals(dic[sx]))c1=code[sx];
 }    
 System.out.println(data[s]+","+c1);
 }
 
 
 
 
    }
 
    void readx(String file){
 
String str;
BufferedReader br;  
int s;
s=0;
try {
br = new BufferedReader(new InputStreamReader(new FileInputStream(file),"UTF-8"));  
while((str = br.readLine()) != null) {  
s=s+1;
data[s]=str;  
}
br.close();
} catch (IOException e) {System.out.println(e);}  
 
datanumber=s;
 
} 
 
 
}
最終更新:2016年09月09日 02:08