@@ -0,0 +1,467 @@
+package test;%0A%0Aimport java.util.List;%0A%0A/**%0A * Created by Shreyansh on 08-10-2015.%0A */%0Apublic class comparenames %7B%0A    public static boolean check(List%3CString%3E nameStringList) %7B%0A%0A        for (int i = 0; i %3C nameStringList.size() - 1; i++) %7B%0A            for (int j = i + 1; j %3C nameStringList.size(); j++) %7B%0A                if (!nameStringList.get(i).equals(nameStringList.get(j)))%0A                    return false;%0A            %7D%0A        %7D%0A        return true;%0A    %7D%0A%7D%0A

Create comparelastnames.java