This content has been marked as final. Show 2 replies
The toArray methods returns an array, it doesn't turn your List into an array.
By the way, do you really need dedicated methods for evaluating hands with 5, 6, and 7 cards ? (And couldn't this(these) method(s) take a List as parameter insetad of an array?)
List<Card> allCards = new ArrayList<Card>(); allCards.addAll(hc); allCards.addAll(fc); Card allCardsArray = allCards.toArray(new Card[ allCards.size() ]);
Hi, thanks for the answer, I see my mistake :) Completely misread that one.
Thanks again, Ron