oh wow I can't believe I forgot to do that o_O. Thanks that will help me in future programming.
If I did have something other than a Card object in there, and for that reason I wanted to use...
Type: Posts; User: Hallowed
oh wow I can't believe I forgot to do that o_O. Thanks that will help me in future programming.
If I did have something other than a Card object in there, and for that reason I wanted to use...
Well never mind. o_O
I casted it like this:
((Card) dealersHand.get(i)).getValue();
And it worked fine. I'm pretty sure I tried that before and it wouldn't go! But now it does... So thanks for...
This was the error I was getting...
"Exception in thread "main" java.lang.Error: Unresolved compilation problem:
The method getValue() is undefined for the type Object"
Well I think my problem is this, the code wont compile at all. And I think its because I'm trying to compile it, but when I have this code in there: dealersHand.get(#).getValue(); it doesn't compile...
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...