Hi all, Here I go. I'm running a method which uses a for loop to run through a StringBuffer until a criteria is matched. The loop then continues until the criteria is matched again. At this point the data is manipulated. Now when my method is called again the loop starts from zero again, ie endless loop. Is there anyway I can get the loop to start where it finished once the method is called again. Thanks guys and girls
In your for loop initialization where you normally say "int i=0;" instead you say int x = 0; for (int i = x; etc) then you control the value of the x so that the next time is starts at something other than 0.
"JavaRanch, where the deer and the Certified play" - David O'Meara