×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: Dread Morpheus
Added: Sep 7, 2017 4:47 PM
Modified: Sep 7, 2017 7:17 PM
Views: 9
  1. /**
  2.      * Récupèrer les noms des devises du names.properties.
  3.      *
  4.      * @return
  5.      */
  6.     private String[] getNames() {
  7.         Enumeration<String> keys = RB.getKeys();
  8.         String[] names = new String[RB.keySet().size()];
  9.         int i = 0;
  10.         while (keys.hasMoreElements()) {
  11.             names[i] = RB.getString(keys.nextElement());
  12.             i++;
  13.         }
  14.         return sortNames(names);
  15.     }