Fórum aprendendo o java #577987
15/03/2017
0
package Aula16;
public class Notas {
public static void main (String args[]) {
Scanner scan = new Scanner(System.in);
System.out.println("Noat1 ");
double nota1 = scan.nextDouble(); AQUI APARECE O ERRO; The method next.Double() is undefined for the type scanner
System.out.println("Noat2 ");
double nota2 = scan.nextDouble(); AQUI APARECE O ERRO; The method next.Double() is undefined for the type scanner
System.out.println("Noat3 ");
double nota3 = scan.nextDouble(); idem
System.out.println("Noat4 ");
double nota4 = scan.nextDouble(); idem
}
}
o que fazer?
public class Notas {
public static void main (String args[]) {
Scanner scan = new Scanner(System.in);
System.out.println("Noat1 ");
double nota1 = scan.nextDouble(); AQUI APARECE O ERRO; The method next.Double() is undefined for the type scanner
System.out.println("Noat2 ");
double nota2 = scan.nextDouble(); AQUI APARECE O ERRO; The method next.Double() is undefined for the type scanner
System.out.println("Noat3 ");
double nota3 = scan.nextDouble(); idem
System.out.println("Noat4 ");
double nota4 = scan.nextDouble(); idem
}
}
o que fazer?
Wahib Mahmud
Curtir tópico
+ 0
Responder
Clique aqui para fazer login e interagir na Comunidade :)