int len = list.size(); Object l_item; for int i=0; i<len; i++) { l_item = list.get(i); ...
}
public List buildMyList() { List retour = new ArrayList(); retour.add(...); ...
return retour; }
try { ...
} catch (Exception ex) { ex.printStackTrace(); }
try { ...
} catch (IOException ex) { ex.printStackTrace(); } catch (SAXException ex2) { ex2.printStackTrace(); }
Iterator it = l_list.iterator(); String l_str; while (it.hasNext()) { l_str = (String) it.next(); ...
}