Easy Solution - Java
Code\n\nclass Solution{\n    public int numUniqueEmails(String[] emails){\n        int n = emails.length;\n        HashSet<String> ans = new HashSet<>();\n     
# Code\n```\nclass Solution{\n    public int numUniqueEmails(String[] emails){\n        int n = emails.length;\n        HashSet<String> ans = new HashSet<>();\n        for(int i=0; i<n; i++){\n            String[] tmp = emails[i].split("@");\n            StringBuilder a = new StringBuilder("");\n            for(int j=0; j<tmp[0].length(); j++){\n                if(tmp[0].charAt(j)==\'+\') break;\n                if(tmp[0].charAt(j)!=46) a.append(tmp[0].charAt(j));\n                \n            }\n            a.append(\'@\');\n            a.append(tmp[1]);\n            ans.add(a.toString());\n        }\n        return ans.size();\n    }\n}\n```
['Java']