So here is my predicament.
I have an ArrayList called dealersHand.
I also have an ArrayList Deck that is full of playing Card objects. the Card class contains a toString method that returns only the suit and the face of the card. But inside the Card class there is also a getValue() method with a return type of int. That holds the cards value.
What I've been doing in my program is .add(#) ing objects from the Deck arraylist directly into the dealersHand arraylist which initially, when the program runs, has nothing inside of it at all.
So my question here is. Once I put a Card object inside dealersHand array list. how can I access an individual cards getValue method?
dealersHand.get(#).getValue(); sure isn't working =(.
I've tried finding answers that actually make sense on the internet but no luck yet So thank you much for any help. =]
If you guys need I'll collect some of the code so you can look at what I'm trying to do, But i think its pretty clearly explained above?