(Collection<Integer> categories)
| 235 | } |
| 236 | |
| 237 | public static HashBag<Integer> getCategoriesBag(Collection<Integer> categories) { |
| 238 | HashBag<Integer> votes = new HashBag<>(); |
| 239 | for (Integer category : categories) { |
| 240 | votes.add(category); |
| 241 | } |
| 242 | return votes; |
| 243 | } |
| 244 | } |
no test coverage detected