dimanche 23 mars 2008

aide memoire java #1

parcours de liste :

avec un for :

for( Arc arcAffiche : listGraph){
....
}

avec un while et un iterator :

Iterator itGraph = listGraph.iterator();
while (itGraph.hasNext()){
Arc arcAffiche = (Arc) itGraph.next();
...
}