アットウィキロゴ

げtこでxc

class getcode{

String codebook;
int[] x=new int[10000];
int[] y=new int[10000];
String xml[]=new String[10000];
String com[]=new String[10000];
String code[]=new String[10000];
int s,nysenumber;
int xmlnumber;

void makedata(){

nyse ny=new nyse();
ny.makedata();
codebook=ny.codebook;

xymaker(codebook);

for(s=1;s<xmlnumber+1;s++){
xml[s]=xmlmaker(s,codebook);
}

nysenumber=xmlnumber/2;

for(s=1;s<nysenumber+1;s++){
code[s]=xml[2*s];
com[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月12日 07:56