遍歷的集合後的數據,如何組成一條字符串

  參考鏈接:https://zhidao.baidu.com/question/987351095931176779.html   重點是 定義一個變量 String a = null; for (int j = 0; j < values.size(); j++) {     // 遍歷集合 得到每一個值。   a += (String) values.get(j) + ","; //每遍歷一
相關文章
相關標籤/搜索