- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
public Map<Integer, List<Card>> makeFirst4Containers() {
int cardCount = 7;
Map<Integer, List<Card>> fourCardList = new HashMap<Integer, List<Card>>();
for (int i = 0; i < 4; i++) {
int fromIndex = cardCount * i;
int toIndex = cardCount * (i + 1);
List<Card> list = new ArrayList<Card>();
list.addAll(deck.subList(fromIndex, toIndex));
fourCardList.put(i, list);
}
return fourCardList;
}
proweber1 13.12.2016 17:11 # −1
Pidor 13.12.2016 17:14 # −2
Dr_Stertor 13.12.2016 17:27 # −1