Import java.util.Scanner;
public class Media {
public static void main(String[] args) {
Scanner resposta = new Scanner(System.in);
System.out.println("Qual a primeira nota? ");
double nota1 = resposta.nextDouble();
Scanner resposta2 = new Scanner(System.in);
System.out.println("Qual a segunda nota");
double nota2 = resposta2.nextDouble();
double media = (nota1 + nota2)/2;
System.out.println("A media é: " + media);
}
}