+ /**\r
+ * Remove deuplicat string in list\r
+ * \r
+ * This function is to duplicat string in list\r
+ * \r
+ * @param String[]\r
+ * String list.\r
+ * @return String[] String list which remove the duplicate string.\r
+ */\r
+ public static String[] remDupString (String[] orgList){\r
+ Set<String> strList = new HashSet<String>();\r
+ String[] desList ;\r
+ if (orgList == null){\r
+ return new String[0];\r
+ }\r
+ for (int i = 0; i < orgList.length; i++){\r
+ strList.add(orgList[i]);\r
+ }\r
+ desList = new String[strList.size()];\r
+ Iterator item = strList.iterator();\r
+ int index = 0;\r
+ while (item.hasNext()){\r
+ desList[index] = (String)item.next();\r
+ index++;\r
+ }\r
+ return desList;\r
+ }\r
+ \r