Results 1 to 2 of 2
- 11-23-2011, 12:54 PM #1
Member
- Join Date
- Oct 2011
- Posts
- 16
- Rep Power
- 0
- 11-23-2011, 03:02 PM #2
Re: Converting a for loop to a do-while loop
Rewrite the for loop to use indexes instead of iterators.
Then look at the loop control logic, see how the index variable is used and rewrite the logic for the do{} while loop using that same type of logic with an index.
Can you get an iterator for notes? Then your logic could use an iterator instead of an index.
Similar Threads
-
Problem with while loop, assigning a variable with a different value every loop? Help
By JavaProg in forum New To JavaReplies: 2Last Post: 11-07-2011, 02:25 AM -
Is it Possible? Array elements Initialized in Loop, can it be viewed outside loop?
By JPH in forum New To JavaReplies: 1Last Post: 10-01-2011, 02:12 AM -
JTextField loop 2x for-loop WEIRD!
By Streetproject in forum AWT / SwingReplies: 2Last Post: 02-16-2011, 05:46 PM -
Convert do while loop to for loop
By sandeeptheviper in forum New To JavaReplies: 3Last Post: 01-03-2011, 12:37 PM -
while-loop stopping on first loop
By davester in forum New To JavaReplies: 6Last Post: 06-26-2009, 08:46 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks