import java.io.*;
import java.net.URLEncoder;
class pro{
String urlx,data;
String word,str,str1;
String[] memo=new String[1000];
int s,number;
public static void main(String [] args) {
pro test=new pro();
}
pro(){
word="どらごん";
urlx="";
try{
str = URLEncoder.encode(word,"utf-8");
urlx="http://www11.atpages.jp/ce00582/ex.php?me=";
urlx=urlx+str;
}catch(Exception e) { System.err.println(e); }
getdata g=new getdata();
g.makedata(urlx);
data=g.data;
String[] x=data.split("<START>");
str1=x[1];
String[] y=str1.split("</data>");
number=y.length;
for(s=0;s<y.length;s++){
memo[s+1]=y[s];
memo[s+1]=memo[s+1].replace("<data>","");
System.out.println(memo[s+1]);
}
}
}
最終更新:2011年07月21日 19:27