
Pablo Etcheverry
Preguntastudent•hace 5 años
¿Alquien me puede explicar el uso del valueOf en la siguiente sentencia?
response = Integer.valueOf(sc.nextLine());

Stiven Trujillo
student•hace 4 años
Pero no se puede hacer con un casteo algo asi como:
int response = (int) sc.nextLine();
???