"; long start = System.currentTimeMillis(); System.out.println(start); Set result = new HashSet(); for (int i = 0; i < 50000; i ) { String temp = EmojiFilterUtil.getFilteredStr(str, ";"); String[] tempStr = temp.split(";"); for (String key : tempStr) { result.add(key); } } System.out.println(System.currentTimeMillis() - start); System.out.println(result.size()); System.out.println(result.toString()); String[] a = new String[result.size()]; result.toArray(a); for (String s : a) { str = StringUtils.replace(str, s, ""); } System.out.println(str); }}
免責聲明:若本站收錄的資源侵犯了您的權益,我們會及時刪除侵權內容,謝謝合作!