title: How to remove the first character of every string in an array in java
body: <p>for a coding assignment we need to create a card game. For the coding part of the game we decided to make one string array that has all the cards in it. In this array it tells you the suit and value of the card. What we also want to do is to be able to remove the characters that identify the suit so that we can convert it from a string to an int to add up points at the end. I've tried numerous methods to get what I want in having an array of cards that can be converted later into an int from using an intrstream to fill 1-52 and then assigning values based on ranges n-n =spades etc., to trying to learn how to use enums since we haven't learned about those yet, and from looking at other peoples code who are doing a similar thing. </p>
  
  <p>TLDR: I'm trying to just have this for each loop go through each string and remove the first character. Doesn't work.</p>
  
  <pre><code>String[] deck =
    {"DA, D2, D3, D4, D5, D6, D7, D8, D9, D10, DJ, DQ, DK, SA, S2, S3, S4, S5, S6, S7, S8, S9, S10, SJ, SQ, SK, HA, H2, H3, H4, H5, H6, H7, H8, H9, H10, HJ, HQ, HK, CA, C2, C3, C4, C5, C6, C7, C8, C9, C10, CJ, CQ, CK"};
  String[] points = new String[deck.length];
  for (int i = 0;i&lt;deck.length;i++ ) {
      points[i] = deck[i].substring(0);
    }
      System.out.println(Arrays.toString(points));
  </code></pre>