Java Solution
\nclass Solution {\n    public int numUniqueEmails(String[] emails) {\n        Map<String,Integer> m = new HashMap<>();\n        for(String x:emails){\n        
```\nclass Solution {\n    public int numUniqueEmails(String[] emails) {\n        Map<String,Integer> m = new HashMap<>();\n        for(String x:emails){\n            String[] y = x.split("@");\n                String s= y[0];\n                if(s.contains("+")){\n                    s = s.substring(0,s.indexOf("+"));\n                }\n            if(s.contains(".")){\n                String[] tmp = s.split(".");\n                s = Arrays.toString(tmp); \n            }\n               \n            if(!m.containsKey(s+"@"+y[1])){\n                \n                m.put(s+"@"+y[1],1);\n            }\n            \n        }\n        return m.size();\n    }\n}\n```
[]