How about using comma as the delimiter option in the Scanner itself rather than using the obvious split and accompanying array?
Scanner (Java Platform SE 7 )