lang:java:dictionary
Ceci est une ancienne révision du document !
Table des matières
for each
for (Enumeration e = propList.keys(); e.hasMoreElements();) { String key = (String)e.nextElement(); String value = (String)propList.get(key); }
keys de Hashtable vers string
String.join(", ", hash.keySet())
Enumerable vers Iterable
Pour utiliser String.join avec un dictionnaire par exemple.
Collections.list(dict.keys());
lang/java/dictionary.1478467687.txt.gz · Dernière modification : 2016/11/06 22:28 de root