Out of the following, which is the preferred way of reusing the section vector?
Iterator<Vector> outputIter = parsedOutput.iterator();
while(outputIter.hasNext()) {
Vector section = outputIter.next();
}
or
Vector section = null;
while(outputIter.hasNext()) {
section = outputIter.next();
}
Vectoris very old school, common in the late 90s.