Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Error de compilación
Main.java:7: error: incompatible types: String cannot be converted to int int a = scanner.nextLine(); ^ 1 error |
||
#2 |
Error de compilación
Main.java:7: error: incompatible types: String cannot be converted to int int a = scanner.nextLine(); ^ 1 error |
||
#3 |
Error de compilación
Main.java:7: error: incompatible types: String cannot be converted to int int a = scanner.nextLine(); ^ 1 error |
||
#4 |
Error de compilación
Main.java:7: error: incompatible types: String cannot be converted to int int a = scanner.nextLine(); ^ 1 error |
||
#5 |
Error de compilación
Main.java:7: error: incompatible types: String cannot be converted to int int a = scanner.nextLine(); ^ 1 error |
import java.util.Scanner; class Main{ public static void Main(String[] args){ Scanner scanner = new Scanner(System.in); System.out.println("Into value a:"); int a = scanner.nextLine(); } }