Is that legal? does the iterator automatically return an object of the type specified in the angle brackets? if not is this just an oversight or was there a compelling reason for not typing the iterator to what was specified in the collection/list? It seems that its necessary to cast the object coming out of the iterator...
or should I be saying for(Iterator<String> = list.iterator....??
Joined: Nov 16, 2004
Ok I guess I just need to ask the question out loud(er type it out) to figure it out... heh.