package tom;
import tool.*;
public class pro {
String[] code=new String[50000];
String[] codex=new String[50000];
int[] point=new int[5000];
String[] name=new String[50000];
String[] data=new String[50000];
int s,sx,datanumber;
String[] t=new String[5000];
int[] number_dic=new int[5000];
int[] y=new int[5000];
int[] v1=new int[5000];
double[] p=new double[5000];
double[] sol=new double[50];
int number;
double[][] x=new double[700][60];
public static void main(String[] args) {
pro te=new pro();
}
pro(){
getdata sub=new getdata();
sub.makedata("http://kuwazudatabase.seesaa.net/","SJIS");
datanumber=sub.datanumber;
data=sub.data;
String str="";
for(s=1;s<datanumber+1;s++){
str=str+data[s];
}
String[] x=str.split("</tr>");
for(s=1;s<x.length;s++){
String[] y=x[s].split("</td>");
String n="";
String v="";
for(sx=0;sx<y.length;sx++){
y[sx]=change(y[sx]);
int h=0;
if(y[sx].indexOf("/")>-1)h=h+1;
if(sx==3)h=h+1;
if(h==2)n=y[sx];
h=0;
if(y[sx].indexOf("vs")>-1)h=h+1;
if(sx==4)h=h+1;
if(h==2)v=y[sx];
}
System.out.println(n+","+v);
}
}
double num(String str){
double nx;
nx=0;
try{
nx=Double.parseDouble(str);
}catch (Exception e) {}
return nx;
}
int numx(String str){
int nx;
nx=0;
try{
nx=Integer.parseInt(str);
}catch (Exception e) {}
return nx;
}
String change(String str){
int n;
for(n=1;n<21;n++){
str=rev(str);
}
return str;
}
String rev(String str){
if(str==null)str="";
int p1=str.indexOf("<");
int p2=str.indexOf(">",p1);
String strx="";
if(p2>-1)strx=str.substring(p1,p2+1);
str=str.replace(strx,"");
return str;
}
}
最終更新:2016年08月27日 00:09