posted 18 years ago
I know i can use .indexOf and lastIndexOf to obtain the first and last position of an element. However, I also want to find the other indexes in the arraylist between the start and the beginning.
Would it be best to, when having found the first position in the arraylist to split at the point to leave me with the rest of the array list yet to consider so i can use .indexOf again to find the next position? If so, how can this be done?