I'm writing a program that takes 3 or 5 arguments. The first is a String, the middle is/are numbers, and the last one is a String. However, the last argument is also surrounded by quotation marks, and needs to be treated as one string. This makes it impossible to use .split(), as I have tried.
For example: bob 1 2 3 "jimmy john"
should be [bob, 1, 2, 3, jimmy john]
, not [bob, 1, 2, 3, jimmy, john]
. Thanks!