Hi:
I'm learning java on my own. I'm on arrays now.
This program is supposed to ask the user to input numbers. As soon as you hit zero (0) the program prints the largest item entered and then quits.
BUG: for some reason, the code sometimes works, sometimes it doesn't. More likely a logical error somewhere I can't see.
For example, you enter 9,3,4,5,7 sometimes it prints out 9. Sometimes it prints 7. It is always the first number or the last one.
Any ideas what's up? many thanks in advance.
[ June 26, 2004: Message edited by: Benjamin Mulder ]