I am not sure how to add objects to an ArrayList. I am going to show some of my code, and could you please tell me, or lead me, in the right direction for how to do this. Thank you!
Okay, that was my object. Now, do I need to somehow return the rank and suit in my while loop? Okay, here is the BridgeHand class that neesds to get the cards added to it. (I thought it would be a good idea if the hand was in an ArrayList of Card objects...)
now, when I try to print the size of my list, it only says '1', so I know I am not doing this correctly, but I keep getting stumped at how to do it...
Sorry for such a long post, but I felt all the code was necessary for someone to try and help me out. Thanks a bunch ahead of time!!