string to string array conversion in java
To start you off on your assignment, String.split splits strings on a regular expression and this expression may be an empty string: Yields the array: Getting rid of the empty 1st entry is left as an exercise for the reader 🙂 Note: In Java 8, the empty first element is no longer included.