在Java中有什么内置的方法,允许我们将逗号分隔字符串转换为一些容器(例如数组,列表或矢量)?或者我需要为此编写自定义代码?
String commaSeparated = "item1 , item2 , item3";
ArrayList<String> items = //method that converts above string into list??
相似问题