I'd like to recommend that you start your design with pseudocode, not with coding. If you can make your design work with pseudocode, you'll be able to "port" it to Java. For example, a nested loop could look like this:
Using pencil and paper, you can see that your output will be:
11 12 13 14 15 21 22 23 24 25 etc.
Now, once you have the pseudocode working, build your Java code from it.
See how that follows the pseudocode? You could even use your pseudocode as comments for the Java, but I'll leave that up to you to work out.
Let me know if that helps, or if you need more.
Give a man a fish, he'll eat for one day. Teach a man to fish, he'll drink all your beer.
Cheers, Jeff (SCJP 1.4, SCJD in progress, if you can call that progress...)
hi Sarah Creech You can take a look with a similar topic that we have discussed before, I predict that you may know each other. You can click here Of course, some rachers gave you some tips and you just require to edit a little bit code that will become an answer. My suggestion will be that keep the program as simple as possible. Do you think that a loop is enough?
[ October 18, 2004: Message edited by: siu chung man ]
Joined: Oct 08, 2004
Thanks Guys for all of the help I finally got it working. I did not know that anyone had replied because it usually emails me and notifies you when someone does answer your question. Dont know why it did not this time. Thanks everyone for your help.