(String[] args)
| 19 | Collections.reverse(RLIST); |
| 20 | } |
| 21 | public static void |
| 22 | main(String[] args) throws Exception { |
| 23 | for(String type: sets) { |
| 24 | System.out.format("[-> %s <-]%n", |
| 25 | type.substring(type.lastIndexOf('.') + 1)); |
| 26 | @SuppressWarnings("unchecked") |
| 27 | Set<String> set = (Set<String>) |
| 28 | Class.forName(type).getConstructor().newInstance(); |
| 29 | set.addAll(RLIST); |
| 30 | set.stream() |
| 31 | .limit(10) |
| 32 | .forEach(System.out::println); |
| 33 | } |
| 34 | } |
| 35 | } |
| 36 | /* Output: |
| 37 | [-> HashSet <-] |
nothing calls this directly
no test coverage detected