Tim 2 Phan Tu Giong NHAU TRONG 1 MANG Java

public static boolean checkDuplicateUsingAdd(String[] input) {
    Set tempSet = new HashSet();
    for (String str : input) {
        if (!tempSet.add(str)) {
            return true;
        }
    }
return false;
}