lunes, 12 de noviembre de 2012


FORMATO DE CONVERSION A TIPOS DE DATOS REQUERIDOS:

 

Nombre_var = Tipo.Palabra_ReservadaTipo_Dato(Objeto.Método);

 

edad = Integer.parseInt(lectura.readLine());

nocontrol = Long.parseLong(lectura.readLine());

estatura = Float.parseFloat(lectura.readLine());

peso = Double.parseDouble(lectura.readLine());

 

Previamente se declaran las variables:

int edad;

long Nocontrol;

float estatura;

double peso;

No hay comentarios:

Publicar un comentario