title: Convert List<String> to List<Integer> directly
body: <p>After parsing my file " s" contains <code>AttributeGet:1,16,10106,10111</code> </p>
  
  <p>So I need to get all the numbers after colon in the attributeIDGet List. I know there are several ways to do it. But is there any way we can <strong>Directly convert <code>List&lt;String&gt;</code> to <code>List&lt;Integer&gt;</code>.</strong>
  As the below code complains about Type mismatch, so I tried to do the Integer.parseInt, but I guess this will not work for List. Here s is String.</p>
  
  <pre><code>private static List&lt;Integer&gt; attributeIDGet = new ArrayList&lt;Integer&gt;();
  
  if(s.contains("AttributeGet:")) {
      attributeIDGet = Arrays.asList(s.split(":")[1].split(","));
  }
  </code></pre>