(Map<String,Integer> m, int count)
| 219 | showrgb(lst, lst.size()); |
| 220 | } |
| 221 | public static |
| 222 | void showInv(Map<String,Integer> m, int count) { |
| 223 | m.entrySet().stream() |
| 224 | .limit(count) |
| 225 | .forEach(e -> |
| 226 | System.out.format( |
| 227 | "%-20s 0x%06X%n", e.getKey(), e.getValue())); |
| 228 | } |
| 229 | public static void showInv(Map<String,Integer> m) { |
| 230 | showInv(m, m.size()); |
| 231 | } |