class tran{
String[] title=new String[100];
String[] source=new String[100];
String[] date=new String[100];
String[] content=new String[100];
String[] link=new String[100];
int[] bcode=new int[1000];
String[] surface=new String[100];
String[] reading=new String[100];
String[] pos=new String[100];
int n,wordnumber;
int s,checknumber;
String dbtable,wordtable;
String bun;
int key;
String[] chword=new String[1000];
int[] chbcode=new int[1000];
int[] chnumber=new int[1000];
public static void main(String args[]){
tran test=new tran();
}
tran(){
dbtable="bojtable";
wordtable="wordtable";
check ch=new check();
ch.makedata(dbtable);
title=ch.title;
source=ch.source;
date=ch.date;
link=ch.link;
content=ch.content;
checknumber=ch.checknumber;
bcode=ch.bcode;
System.out.println(checknumber);
for(n=1;n<checknumber+1;n++){
yahoo yh=new yahoo();
yh.makedata(content[n]);
bun=yh.bun;
xml x=new xml();
x.makedata(bun);
surface=x.surface;
reading=x.reading;
pos=x.pos;
wordnumber=x.wordnumber;
key=0;
wordtable tab=new wordtable();
if(key>50)tab.makedata(wordtable);
wordinsert win=new wordinsert();
win.bcode=bcode[n];
win.word=surface;
for(s=1;s<wordnumber+1;s++){
win.makedata(wordtable,s);
}
}
wordcheck wc=new wordcheck();
wc.makedata(wordtable);
chbcode=wc.bcode;
chword=wc.word;
chnumber=wc.number;
checknumber=wc.checknumber;
for(s=1;s<checknumber+1;s++){
System.out.println(chword[s]);
}
}
}
最終更新:2011年04月10日 14:18