Im currently trying to add a total of cards shown to my binary project. What is confusing is that I am supposed to:
call ‘setCount’ on ‘counter’ and pass in the ‘total’
I am very new to Java and really don't understand what is being asked here. this is the 2 methods that I am dealing with. I need to implement this in the updateCounter method. Any help would be greatly appreciated.
public void updateCounter()
{
int total = calculateTotal();
Counter counter = getCounter();
}
private int calculateTotal()
{
int total = 0;
for ( Card card: getCards ())
{
if (card.isShown())
{
card.getValue();
total++;
}
}

