Hashmap
Résolu
ABIROU06
Messages postés
3
Date d'inscription
Statut
Membre
Dernière intervention
-
tarek_dotzero Messages postés 817 Date d'inscription Statut Membre Dernière intervention -
tarek_dotzero Messages postés 817 Date d'inscription Statut Membre Dernière intervention -
bonjour bon je suis entrain de faire une méthode hasp map est je me suis bloqué car je n'ai aucun information sur le hasp map
je recopie le code de l'internet avec un ai fort personnelle
public Mahashmap parseXml2(String hashmap )
throws Exception
{
try
{
Object val = Mahashmap.get(key);
if (mahashmap != null )
sfor( Iterator ii = Mahashmap.keySet().iterator(); ii.hasNext();) {
String key = (String)ii.next();
String value = (String) Mahashmap.get(key);
System.out.println("valeur de la cle : "+ key);
System.out.println("valeur de la valeur : "+ value);
}
}
catch (Exception ex) {
}
return(val);
}
je recopie le code de l'internet avec un ai fort personnelle
public Mahashmap parseXml2(String hashmap )
throws Exception
{
try
{
Object val = Mahashmap.get(key);
if (mahashmap != null )
sfor( Iterator ii = Mahashmap.keySet().iterator(); ii.hasNext();) {
String key = (String)ii.next();
String value = (String) Mahashmap.get(key);
System.out.println("valeur de la cle : "+ key);
System.out.println("valeur de la valeur : "+ value);
}
}
catch (Exception ex) {
}
return(val);
}
A voir également:
- Parcourir une hashmap java
- Waptrick java football - Télécharger - Jeux vidéo
- Jeux java itel - Télécharger - Jeux vidéo
- Eclipse java - Télécharger - Langages
- Java apk - Télécharger - Langages
- Waptrick java voiture - Télécharger - Jeux vidéo
1 réponse
Bonour,
Hashmap fait partie des collections Java, c'est un outil pas un objectif, alors il faut mettre en quoi vous allez l'utiliser.
Sinon, jetez un coup d'oeil sur ce chapitre du livre DEJ :
https://jmdoudoux.developpez.com/cours/developpons/java/chap-collections.php
Bon Courage.
Hashmap fait partie des collections Java, c'est un outil pas un objectif, alors il faut mettre en quoi vous allez l'utiliser.
Sinon, jetez un coup d'oeil sur ce chapitre du livre DEJ :
https://jmdoudoux.developpez.com/cours/developpons/java/chap-collections.php
Bon Courage.