Map caseTypeMap = new HashMap(); for ( int i = 0 ;i < aList.size();i ++ ) ... { String caseType1 =aList.getValue(); caseTypeMap.put(caseType,i+""); } StringBuffer sb = new StringBuffer(); Iterator iterator = caseTypeMap.entrySet().iterator(); int i = 0 ; while (iterator.hasNext()) ... { Map.Entry entry = (Entry)iterator.next(); i++; if(i==caseTypeMap.size())...{ sb.append(entry.getKey()); }else...{ sb.append(entry.getKey()).append("、"); } } //sb.toString()值为所需要的值 // sb.toString();