如何在java中使用split()标记字符串?
我需要标记这个字符串
AddItem rt456 4 12 BOOK "File Structures" "Addison-Wesley" "Michael Folk"
我需要
"AddItem","rt456","12","BOOK","File Structures","Addison-Wesley","Michael Folk"
子字符串。如何使用split()获取这些令牌
你可以在下面搜索框中键入要查询的问题!
我需要标记这个字符串
AddItem rt456 4 12 BOOK "File Structures" "Addison-Wesley" "Michael Folk"
我需要
"AddItem","rt456","12","BOOK","File Structures","Addison-Wesley","Michael Folk"
子字符串。如何使用split()获取这些令牌
# 1 楼答案
输出: