This site requires JavaScript, please enable it in your browser!
Greenfoot back
Sayah
Sayah wrote ...

2014/4/15

Help me with programming - BEGINNER

Sayah Sayah

2014/4/15

#
Please, write a program in Greenfoot or Java which after you have specified in the blank frame how much stars do you want, draws them in a column from left to right! Urgent, please!
Entity1037 Entity1037

2014/4/16

#
Look up "for" loops and "while" loops. Also, Greenfoot. has the methods "getWidth()", "getHeight()", and "getWorld()".You can use them to find out when to go to the next colomn/row. I can't just give you the code though; you wouldn't learn really anything. I can tell you that it will involve a nested loop though.
You need to login to post a reply.