Code example for HashSet

Methods: addAll, toArray

0
		return sb.toString();
	} 
	 
	//È¥³ýÊý×éÖÐÖظ´µÄ¼Ç¼ 
	public static String[] array_unique(String[] a) {
		Set<String> set = new HashSet<String>();
		set.addAll(Arrays.asList(a));
		return set.toArray(new String[0]);
	} 
 
	 
	public static void main(String[] args) {
		String ss = StringOptUtil.combineSeveralString("123,31222","dddggg","123,31222");
		System.out.println(ss);
	} 
}