title: How to split a String in Java, ignoring multiple successive tokens
body: <p>I'm trying to parse arguments for a command, but if I were to put multiple spaces in a row, String.split() will leave empty Strings in the result array. Is there a way I can get rid of this?</p>
  
  <p>For example: <code>"abc     123".split(" ")</code> results in <code>{"abc", "", "", "", "", "123"}</code> but what I really want is <code>{"abc", "123"}</code></p>