class codecheck{
String codebook;
int[] x=new int[10000];
int[] y=new int[10000];
String xml[]=new String[10000];
String com[]=new String[10000];
String tcode[]=new String[10000];
int s,tsenumber;
int xmlnumber;
public static void main(String [] args) {
codecheck test=new codecheck();
}
codecheck(){
makedata();
System.out.println(tsenumber);
for(s=200;s<400;s++){
System.out.print(s);
System.out.print("+");
System.out.println(com[s]);
}
}
void makedata(){
tse tokyo=new tse();
tokyo.makedata();
codebook=tokyo.codebook;
xymaker(codebook);
for(s=1;s<xmlnumber+1;s++){
xml[s]=xmlmaker(s,codebook);
}
tsenumber=xmlnumber/2;
for(s=1;s<tsenumber+1;s++){
com[s]=xml[2*s];
tcode[s]=xml[2*s-1];
}
}
void xymaker(String str){
int p1;
int s;
s=1;
p1=str.indexOf("<");
x[1]=p1;
while(p1>-1){
p1=str.indexOf("<",p1+1);
if(p1>-1)s=s+1;
if(p1>-1)x[s]=p1;
}
xmlnumber=s;
for(s=1;s<xmlnumber+1;s++){
y[s]=str.indexOf(">",x[s]);
}
}
String xmlmaker(int s,String str){
int p1,p2;
String bara;
p1=x[s];
p2=y[s];
bara=str.substring(p1+1,p2);
return bara;
}
}
最終更新:2011年04月06日 04:29