title: How to store an image in a variable in Java? (Android Development)
body: <p>I've searched around Google and Bing for a while, but so far have only found legit answers pertaining to JavaScript and similar web scripting languages.  Hoping one of you fine folks could provide me some insight on the best way to go about this.  </p>
  
  <p>Basically I'm developing a card-game for Android, and I'm storing my individual cards in an ArrayList of the class Card.  Card, so far, has three priv variables: Rank, Suit and Image.  Rank and suit are obvious, but I'm stumped as for a way to store the image for the card in the class.  Should I store a string that is the directory for the image in res/mdpi, or should I actually store it as a bitmap (if that's even possible...). </p>
  
  <p>Basically  I want to be able to, when dealing the cards in later-created classes, to use a method that will randomly select a card, make sure it hasn't been dealt yet, then deal the card.  I'm guessing I'll draw it to the screen by calling something like "Card.drawCard" where "drawCard" is a method of "Card" I will create to paint the card...  Probably end up doing it a completely different way, but I'll learn-as-I-go.  </p>
  
  <p>So... How do I store the image in a variable?</p>