{filelink=469}
/***** Code de MesExemples.com *******/
import java.util.LinkedHashSet;
class ParcourirLinkedHashSet
{
public static void main(String[] args) {
//créer un objet LinkedHashSet et ajouter des valeurs
LinkedHashSet lhashSet = new LinkedHashSet();
System.out.println ("Taille initiale: "+lhashSet.size());
lhashSet.add("A");
lhashSet.add("B");
lhashSet.add("C");
Iterator itr = lhashSet.iterator();
System.out.println("LinkedHashSet contient : ");
while(itr.hasNext())
System.out.println(itr.next());
}
}
A Voir sur le même Sujet:
- parcourir et afficher des images java
- parcourir linkedhashset
- code+source+java+de+parcourir+les+objet+du+navigateur
- java parcourir un LinkedHashSet
- utilisation linkedhashset
- parcourir un video en java
- afficher le contenu de hashtable java
- commentaire sur le contenu de source java
- bibliothéque iterator java