title: Java convert from String array to short array?
body: <p>hello I have a commaseparated list of string and put into an array.</p>
  
  <p>I ultimately need them as a list of shorts, but the only way I know how to do that is get them as an array of shorts then do <code>array.asList()</code></p>
  
  <pre><code>String[] stringArray= commaSeparatedString.split("\\s*,\\s*");
  </code></pre>
  
  <p>How can I get that to an array of shorts so I can throw in a list?</p>
  
  <p>THanks</p>