@@ -0,0 +1,230 @@
+package animal;%0A%0Aimport java.util.Comparator;%0Apublic class CompararNome implements Comparator%3CAnimal%3E %7B%0A%09%09@Override%0A%09%09public int compare(Animal animal, Animal outroAnimal)%7B%0A%09%09%09return animal.nome.compareTo(outroAnimal.nome);%0A%09%09%7D%0A%7D%0A

Create CompararNome.java