hey im new to java and im trying to get stars to appear randomly accross the sky and i cant fugure out how to use the functions
for (a=1;a<1000;a=a +10)
{
g.fillOval(0+a, 2,6,6);
}
thats what i have now and the stars go stright accross teh sky..if nothing else then i would just line the stars up in teh sky but no matter how big i make my for loop, the starts just go one line stright accross the top...
id like stars(ovals) from 0,350
for (a=1;a<1000;a=a +10)
{
g.fillOval(0+a, 2,6,6);
}
thats what i have now and the stars go stright accross teh sky..if nothing else then i would just line the stars up in teh sky but no matter how big i make my for loop, the starts just go one line stright accross the top...
id like stars(ovals) from 0,350
Comment