I need to tokenize this string.
AddItem rt456 4 12 BOOK "File Structures" "Addison-Wesley" "Michael Folk"
I need
"AddItem","rt456","12","BOOK","File Structures","Addison-Wesley","Michael Folk"
substrings. How i can get these tokens with using split()?
split? Why you want to complicate your life? Wouldn't simple Pattern/Matcher be simpler? You can also write your own simple parser for that.