I'm using an ArrayList iterator like:
ArrayList<String> definitions = new ArrayList<String>();
Iterator<ListType> it = definitions.iterator();
Can I just use an element like:
Is that cast operation allowed? Or for every time I want to ever use it in a certain scope I need to do:
String refString = it.next();
Only problem with that is, I better make sure next() is only called once otherwise it increments the internal iterator every time right?