Original Post
Hey! I was just wondering if there is any difference in speed if one does, for example:
Iterator it = list.iterator();
while (it.hasNext()) {
Object o = it.next();
} compared to
Iterator it = list.iterator();
Object o;
while (it.hasNext()) {
o = it.next();
}