Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static Collection<Denombrement> cartesDenombrees(Collection<? extends Carte> desCartes) {
- ArrayList<Denombrement> cartesDenombrement = new ArrayList<Denombrement>();
- Denombrement d;
- for (Carte c : desCartes) {
- d = new Denombrement(c,Collections.frequency(desCartes,c));
- if (!cartesDenombrement.contains(d))
- cartesDenombrement.add(d);
- }
- return cartesDenombrement;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement