I want to split a string like
\"first middle last\"
with String.split(). But when i try to split it I get
String.split()
Since split() uses regular expressions, you can do something like s.split("\\s+") to set the split delimiter to be any number of whitespace characters.
split()
s.split("\\s+")