62,614
社区成员
发帖
与我相关
我的任务
分享
{"element": [
"Name",
"Name",
"Name",
"Name",
"Description",
"Description",
"Description",
"Description",
"Facet"
]}
public static void removeDuplicate(ArrayList arlList)
{
HashSet h = new HashSet(arlList);
arlList.clear();
arlList.addAll(h);
}
然后再把数组加到JSON对象去,JSONObject object=new JSONObject();object.put("element",ArrayList);