Example #1
0
 public static Map filterLoadedValues(Map<String, String> in) {
   Map<String, Float> out = new HashMap<>();
   for (Iterator iterator = in.entrySet().iterator(); iterator.hasNext(); ) {
     Map.Entry entry = (Map.Entry) iterator.next();
     out.put(entry.getKey().toString(), Float.valueOf(entry.getValue().toString()));
   }
   return out;
 }
Example #2
0
 private static void printEntry(Map.Entry e) {
   System.out.println(e.getKey() + " : " + e.getValue());
 }