0
Im totally lost on what to do and need some assistents.
public void give(StackADT<Card> stack1, StackADT<Card> stack2, QueueADT<Card> winner) { if (winner == hand1) { System.out.println("Player 1 gets the cards"); } else { System.out.println("Player 2 gets the cards"); } try{ while (!(stack1.isEmpty())) { //TODO pop off a card on top of stack1 and insert it to winner's pile in hand } } catch (Exception e){ e.printStackTrace(); } }
1 Resposta