@@ -0,0 +1,677 @@
+/*%0A * To change this license header, choose License Headers in Project Properties.%0A * To change this template file, choose Tools %7C Templates%0A * and open the template in the editor.%0A */%0Apackage objetounico;%0A%0A/**%0A *%0A * @author Yuri, Rodrigo e Mauricio%0A */%0Apublic class Unica %7B%0A%0A%09private static Unica instanciaUnica = new Unica ();%0A%0A%09private Unica() %7B%7D%0A        %0A%09public static Unica pegaInstancia() %7Breturn instanciaUnica;%09%7D%0A%7D%0A%0Aclass Teste %7B%0A   public static void main(String%5B%5D args) %7B%0A      Unica u = Unica.pegaInstancia();%0A      Unica v = Unica.pegaInstancia();%0A      Unica x = Unica.pegaInstancia();%0A      System.out.println((u == v) && (x == v)); // Deve retornar true%0A   %7D%0A%7D%0A

Create ObjUnico.java