title: Split string of numbers into individual numbers
body: <p>How could I split the numbers in the string "542" into individual digits? On my desktop I can split the numbers using <code>String.split("")</code> and it works fine. But when run on Android, I get a <code>NumberFormatException: Invalid int: ""</code>. 
  This is my code:</p>
  
  <pre><code>public void render(int n, SpriteBatch batch) {
      String[] numbers = String.valueOf(n).split("");
      for(int i = 0; i &lt; numbers.length; i++) 
          batch.draw(Assets.numbers[0][Integer.valueOf(numbers[i])], pos.x + (50 * i), pos.y);
  }
  </code></pre>
  
  <p>Is there an alternative way?</p>