class ren{
String company;
int year1,month1,day1;
int year2,month2,day2;
String ycode;
String urlx;
int de,m,n,s;
int lastnumber,tnumber;
String[][] data=new String[100][7];
int[] oprice=new int[100];
int[] hprice=new int[100];
int[] lprice=new int[100];
int[] cprice=new int[100];
int[] volume=new int[100];
int[] rprice=new int[100];
int[] year=new int[100];
int[] month=new int[100];
int[] day=new int[100];
String com[]=new String[10000];
String tcode[]=new String[10000];
int[] stoprice=new int[1000];
int[] sthprice=new int[1000];
int[] stlprice=new int[1000];
int[] stcprice=new int[1000];
int[] stvolume=new int[1000];
int[] strprice=new int[1000];
int[] styear=new int[1000];
int[] stmonth=new int[1000];
int[] stday=new int[1000];
String[] stcode=new String[1000];
int dataid,datanumber;
public static void main(String [] args) {
ren test=new ren();
}
ren(){
datanumber=0;
getcode gc=new getcode();
gc.makedata();
com=gc.com;
tcode=gc.tcode;
tnumber=gc.tnumber;
s=5;
ycode=tcode[s];
company=com[s];
for (m=2005;m<2006;m++){
for (n=6;n<10;n++){
year1=m;
month1=n;
day1=1;
year2=m;
month2=n+1;
if(month2>12)year2=m+1;
if(month2>12)month2=1;
day2=1;
yahoourl yu=new yahoourl();
yu.year1=year1;
yu.month1=month1;
yu.day1=day1;
yu.year2=year2;
yu.month2=month2;
yu.day2=day2;
yu.ycode=ycode;
yu.makedata();
urlx=yu.urlx;
dek dog=new dek();
dog.urlx=urlx;
dog.makedata();
de=dog.de;
if(de>50)System.out.print(company);
if(de>50)System.out.print(":");
if(de>50)System.out.print(m);
if(de>50)System.out.print("年");
if(de>50)System.out.print(n);
if(de>50)System.out.print("月の");
if(de>50)System.out.println("データは存在しません");
while(de<50){
revdata rv=new revdata();
rv.urlx=urlx;
rv.makedata();
volume=rv.volume;
hprice=rv.hprice;
lprice=rv.lprice;
cprice=rv.cprice;
oprice=rv.oprice;
rprice=rv.rprice;
day=rv.day;
year=rv.year;
month=rv.month;
lastnumber=rv.lastnumber;
System.out.print(company);
System.out.print(":");
System.out.print(m);
System.out.print("年");
System.out.print(n);
System.out.print("月の");
System.out.println("データを取得しました");
de=100;
store st=new store();
st.volume=volume;
st.hprice=hprice;
st.lprice=lprice;
st.cprice=cprice;
st.oprice=oprice;
st.rprice=rprice;
st.day=day;
st.year=year;
st.month=month;
st.stvolume=stvolume;
st.sthprice=sthprice;
st.stlprice=stlprice;
st.stcprice=stcprice;
st.stoprice=stoprice;
st.strprice=strprice;
st.stday=stday;
st.styear=styear;
st.stmonth=stmonth;
st.lastnumber=lastnumber;
st.datanumber=datanumber;
st.ycode=ycode;
st.makedata();
stvolume=st.stvolume;
sthprice=st.sthprice;
stlprice=st.stlprice;
stcprice=st.stcprice;
stoprice=st.stoprice;
strprice=st.strprice;
stday=st.stday;
styear=st.styear;
stmonth=st.stmonth;
datanumber=st.datanumber;
}
}
}
xmlwrite xml=new xmlwrite();
xml.stvolume=stvolume;
xml.sthprice=sthprice;
xml.stlprice=stlprice;
xml.stcprice=stcprice;
xml.stoprice=stoprice;
xml.strprice=strprice;
xml.stday=stday;
xml.styear=styear;
xml.stmonth=stmonth;
xml.datanumber=datanumber;
xml.makedata();
}
}
最終更新:2011年04月05日 02:47