Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Java Programming, 100 locker problem

807588Jun 22 2009 — edited Jun 23 2009
hello i am intro to programming in java.. i have a problem from my teacher. 100 lockers are all open in an array. 1 person goes in changes all to closed. 2 every other. 3 every third, 4 every fourth and so on until 100. could some1 give me a walktrhough for some help. i understand i have to create the array. and i understand 0= open 1= closed. n= 1 (student).. n++ but other than that i am kind of stuck!.. any help and i would appreciate it.

thanks!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 21 2009
Added on Jun 22 2009
8 comments
2,803 views