(Collection<Integer> lst, int count)
| 210 | show(lst, lst.size()); |
| 211 | } |
| 212 | public static |
| 213 | void showrgb(Collection<Integer> lst, int count) { |
| 214 | lst.stream() |
| 215 | .limit(count) |
| 216 | .forEach(n -> System.out.format("0x%06X%n", n)); |
| 217 | } |
| 218 | public static void showrgb(Collection<Integer> lst) { |
| 219 | showrgb(lst, lst.size()); |
| 220 | } |