Uncommon words from two sentences
```\nclass Solution {\n    public static boolean count(String s,List li){\n        int c=0;\n        for(int i=0;i<li.size();i++)\n        {\n            if(s.e
```\nclass Solution {\n    public static boolean count(String s,List li){\n        int c=0;\n        for(int i=0;i<li.size();i++)\n        {\n            if(s.equals(li.get(i)))\n                c++;\n        }\n        if(c==1)\n            return true;\n        return false;\n    }\n    public String[] uncommonFromSentences(String s1, String s2) {\n        String l1[]=s1.split(" ");\n        String l2[]=s2.split(" ");\n        List<String> arr1=Arrays.asList(l1);\n        List<String> arr2=Arrays.asList(l2);\n        List<String> list=new ArrayList();\n        for(int i=0;i<arr1.size();i++){\n            if(!arr2.contains(arr1.get(i)) && count(arr1.get(i),arr1))\n                list.add(arr1.get(i));\n        }\n        for(int i=0;i<arr2.size();i++){\n            if(!arr1.contains(arr2.get(i)) && count(arr2.get(i),arr2))\n                list.add(arr2.get(i));\n        }\n        String res[]=new String[list.size()];\n        for(int i=0;i<list.size();i++){\n            res[i]=list.get(i);\n        }\n        return res;\n    }\n}
['Java']