Ver Mensaje Individual
  #2 (permalink)  
Antiguo 24/06/2009, 10:17
Cimballi
 
Fecha de Ingreso: agosto-2008
Ubicación: Cajamarca
Mensajes: 49
Antigüedad: 16 años, 7 meses
Puntos: 0
Respuesta: Como realizar cast

Integer.parseInt() parses a string to a number, nombreDelObjeto.intValue() just return the value of a Long as an int, so the second method is faster. But take care, your Long object must not be null.