le mot clé return permet-il d'afficher quelque chose à l'écran.
package fr.codegym.task.task08.task0821;
import java.util.HashMap;
import java.util.Map;
/*
Noms de famille et prénoms partagés
*/
public class Solution {
public static void main(String[] args) {
Map<String, String> map = creerMapPersonnes();
imprimerMapPersonnes(map);
}
public static Map<String, String> creerMapPersonnes() {
//écris ton code ici
for ( int i=0; i < 10 ;i++);
Personne personne = new personne(nom,prénom) ;
HashMap<String, String>map = new HashMap<>();
map.put("Goune", "Stephie")) ;
map.put("Couf","Arnold")) ;
map.put("Cresus","Stephie") ;
map.put("Pierre", "Walla") ;
map.put("Dem", "Cross") ;
map.put("Louis", "Cloire") ;
map.put("Couf","Walla") ;
map.put("Clob","Well") ;
map.put("Dem","Cloire") ;
map.put("Carnold","Arnold") ;
return null;
}
public static void imprimerMapPersonnes(Map<String, String> map) {
for (Map.Entry<String, String> s : map.entrySet()) {
System.out.println(s.getKey() + " " + s.getValue());
}
}
}