Bonjour,

comment faire plus simple que ça :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
 
Map<String, Integer> hm = new HashMap<String, Integer>();
 
/*
 *Alimentation de la HashMap ...
 */
 
//Transformation des clés en List
List<String> words = Arrays.<String>asList(hm.keySet().toArray(new String[0]));
?