class gen{
String company;
String ycode;
String urlx;
int check;
int lastnumber;
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];
int tsecode[]=new int[10000];
void makedata(int s,int year1,int month1,int day1,int year2,int month2,int day2){
getcode gc=new getcode();
gc.makedata();
com=gc.com;
tsecode=gc.tsecode;
ycode=String.valueOf(tsecode[s]);
ycode=ycode+".T";
company=com[s];
yahoo yu=new yahoo();
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;
datacheck dog=new datacheck();
dog.urlx=urlx;
dog.makedata();
check=dog.check;
if(check>50)System.out.print(company);
if(check>50)System.out.print(":");
if(check>50)System.out.print(year1);
if(check>50)System.out.print("年");
if(check>50)System.out.print(month1);
if(check>50)System.out.print("月の");
if(check>50)System.out.println("データは存在しません");
while(check<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(year1);
System.out.print("年");
System.out.print(month1);
System.out.print("月の");
System.out.println("データを取得しました");
check=100;
}
}
}
最終更新:2011年04月12日 05:03