 
			
				16/12/2012, 20:51
			
			
			     |  
      |    |    |    Fecha de Ingreso: diciembre-2011  
						Mensajes: 152
					  Antigüedad: 13 años, 10 meses Puntos: 34     |        |  
  |      Respuesta: Comparar clases de instancias          
Código java:
 Ver originalString a  = "hola", b  = "mundo";         if (a.getClass().isInstance(b)) {             System. out. println("a instance of b");         }         if (c.getClass().isInstance(a)) {             System. out. println("c instance of a");         } 
                |