My Java Solution
\nclass Solution {\n    public int numUniqueEmails(String[] emails) {\n        Set<String> set = new HashSet();\n        int count=0;\n        for(String email:
```\nclass Solution {\n    public int numUniqueEmails(String[] emails) {\n        Set<String> set = new HashSet();\n        int count=0;\n        for(String email: emails){\n            int atIndex = email.indexOf("@");\n            int plusIndex= email.indexOf("+");\n            String str1 = "";\n            if(plusIndex>=0) str1 = email.substring(0,plusIndex);\n            else str1 = email.substring(0,atIndex);\n            str1 = str1.replace(".","") + email.substring(atIndex);\n            if(set.add(str1)) count++;\n        }\n        return count;\n    }\n}\n```
['Java']