title: Can I make a method ignore a character from a value in a LinkedList?
body: <p>I'm very new to Java and I'm working on a project, a card game.</p>
  
  <p>I've made a full deck of cards using a <code>LinkedList</code>. I'm not so sure this is the best solution anymore, but I've gone too far to turn back now.</p>
  
  <p>The thing is that I'm using faces on all my 52 cards in the form of "♥" etc.</p>
  
  <p>The player who is also a <code>LinkedList</code> gets dealt two cards, and they're random and comes out the form of 1♥ (this is the value the card has in the <code>LinkedList</code>).</p>
  
  <p>The problem is getting my Method containing of a switch to calculate the values.
  Is there a way to ignore the "♥"? It works perfectly fine when I remove the faces, but I don't wanna do that! When the faces are left in, the switch does nothing.</p>
  
  <p>Here is my <code>getScore</code> method:</p>
  
  <pre><code>public static int getScore(String card, int score) {
      int temp = card.indexOf("");
      String face = card.substring(temp);
  
      switch (face) {
          case "A":
              score += 1;
              break;
          case "2":
              score += 2;
              break;
  </code></pre>
  
  <p>etc.</p>
  
  <p>I hope there's an easy way to make this work?</p>