package bing;
public class divide {
int p1,sx;
int x=new int[10000];
int y=new int[10000];
int creditnumber;
Stringcredit=new String[10000];
Stringphrase=new String[10000];
String str;
void makedata(String str){
sx=0;
p1=str.indexOf("<");
if(p1>-1)sx=sx+1;
if(p1>-1)x[sx]=p1;
while(p1>-1){
p1=str.indexOf("<",p1+1);
if(p1>-1)sx=sx+1;
if(p1>-1)x[sx]=p1;
}
creditnumber=sx;
for(sx=1;sx<creditnumber+1;sx++){
y[sx]=str.indexOf(">",x[sx]);
}
for(sx=1;sx<creditnumber+1;sx++){
if(y[sx]>x[sx])credit[sx]=str.substring(x[sx]+1,y[sx]);
}
phrase[0]=str.substring(0,x[1]);
for(sx=1;sx<creditnumber;sx++){
phrase[sx]=str.substring(y[sx]+1,x[sx+1]);
}
sx=creditnumber;
if(creditnumber>0)phrase[sx]=str.substring(y[sx]+1,str.length());
}
}