2、如果我们自己使用Java提供的方法,我们需要把productIds转成数组,然后再遍历数组添加到列表中:String[] productStringList =productIds.split; List<String> productList =new ArrayList<