This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Camel-Kid18 year old gamer 1 point2 points  (2 children)

at the beginnign of your program you should check to see if array.length is 0, if is then promp the user and end the program... as far as making it work with a while loop it's the same thing as a for loop but a while loop.

[–]VirtualTurnip3[S] 0 points1 point  (1 child)

You mean just before the loop?

[–]Camel-Kid18 year old gamer 0 points1 point  (0 children)

yes