title: (Java) Converting String of symbols to single digit integer array
body: <p>I'm trying to take a String, i.e. <code>$!#</code>, convert each individual symbol to its corresponding ASCII value, it here being <code>36, 33, 35</code> and then ending up with an array of integers with each single number stored in a separate index, meaning <code>3, 6, 3, 3, 3, 5</code>.</p>
  
  <p>In short: From <code>$!#</code> to <code>$,!,#</code> to <code>36, 33, 35</code> to <code>3, 6, 3, 3, 3, 5</code></p>
  
  <p>Since I am using Processing (wrapper for Java), my SO-research got me so far:</p>
  
  <pre><code>String str = "$!#";
  byte[] b = str.getBytes();
  
  for (int i=0; i&lt;b.length; i++){
   println(b[i]); 
  }
  </code></pre>
  
  <p>I'm ending up with the ASCII values. The byte array <code>b</code> contains <code>[36, 33, 35]</code>.</p>
  
  <p>Now if those were to be Strings instead of bytes, I would use String.valueOf(b) to get <code>363335</code> and then split the whole thing again into a single digit integer array.</p>
  
  <p>I wonder if this approach is unnecessarily complicated and can be done with less  conversion steps. Any suggestions?</p>