Scanner scanner = new Scanner(System.in);
System.out.println("Informe uma nota");
double primeiraNota = scanner.nextDouble();
scanner.close();
System.out.println("Informe outra nota");
double segundoNota = scanner.nextDouble();
scanner.close();
int Result = (int) (primeiraNota + segundoNota)/2;
System.out.println(Result);
Aparece a seguinte mensagem: Exception in thread "main" java.util.InputMismatchException at java.base/java.util.Scanner.throwFor(Scanner.java:939) at java.base/java.util.Scanner.next(Scanner.java:1594) at java.base/java.util.Scanner.nextDouble(Scanner.java:2564) at Main.main(Main.java:9)