title: Need help using subString
body: <pre><code>public class project5{
      public static void main(String args[]){
      String[] storage = {"123457897", "123456","654654654"};
      int current;
      current = Integer.parseInt(storage[1].subString(1,5));
      System.out.println(current);
      }
  }
  </code></pre>
  
  <p>So I'm trying to, as an exercise, just get the first 5 numbers in the first thing of the array and parse it as an integer and store it as the variable current. It gives me the error:</p>
  
  <p><code>test.java:5: error: cannot find symbol
          current = Integer.parseInt(storage[1].subString(1,5));
                                               ^
    symbol:   method subString(int,int)
    location: class String
  1 error</code> </p>
  
  <p>What is it that I'm doing wrong?</p>