Search:

Type: Posts; User: Hallowed

Search: Search took 0.50 seconds.

  1. [SOLVED] Re: How to get the return of a method inside an object in an ArrayList?

    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...
  2. [SOLVED] Re: How to get the return of a method inside an object in an ArrayList?

    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...
  3. [SOLVED] Re: How to get the return of a method inside an object in an ArrayList?

    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"
  4. [SOLVED] Re: How to get the return of a method inside an object in an ArrayList?

    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...
  5. [SOLVED] How to get the return of a method inside an object in an ArrayList?

    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...
Results 1 to 5 of 5