アットウィキロゴ

がめ0506xx

import java.awt.*;
import java.awt.event.*;

class game0506 extends Frame{

int s,n,ns;
int dbnum;
int comp[]=new int[10000];
double oprice[]=new double[10000];
double hprice[]=new double[10000];
double lprice[]=new double[10000];
double cprice[]=new double[10000];
double volume[]=new double[10000];
String date[]=new String[100000];

double xprice[]=new double[1000];

public static void main(String [] args) {
        game0506 f=new game0506();
        f.setTitle("game0506");
        f.setSize(700,700);
        f.setBackground(Color.yellow);
        f.setVisible(true);
    }

game0506(){

gamex test=new gamex();
test.sqldata();
comp=test.comp;
dbnum=test.dbnum;
date=test.date;
oprice=test.oprice;

n=0;
for (s=1;s<dbnum+1;s++){
if(comp[s]==50)n=n+1;
if(comp[s]==50)xprice[n]=oprice[s];
}


ns=n;
for (n=1;n<ns+1;n++){
System.out.println(xprice[n]);
}


addWindowListener(new stopwin());
}


class stopwin extends WindowAdapter{
    public void windowClosing(WindowEvent we){System.exit(0);}
}  


public void paint(Graphics g){
int gx;
for(n=1;n<ns+1;n++){
gx=(int)(10*xprice[n]);
g.fillRect(100+10*n,600-gx,10,gx);
}

}

}
最終更新:2011年03月28日 18:25