title: Filter out the elements that Start with given 4 digit and store them into a List
body: <p>I would like to get the numbers that start with <code>2003</code> (<code>2003001</code> and <code>2003002</code>) and put them into another list.</p>
  <pre><code>public static void main(String[] args) {
  
      String [] num = {&quot;2012001&quot;, &quot;2003001&quot;, &quot;2003002&quot;};
  
      List&lt;String&gt; list = new ArrayList&lt;String&gt;();
      for(String actualList : num) {
          list.add(actualList);
      }
  }
  </code></pre>