Good I need help the following code is not doing the evaluation of if
after asking its continue it returns to the beginning of the loop.
import java.util.Scanner;
public class EjercicioCinco {
public static void main(String[]args){
Scanner sc = new Scanner(System.in);
boolean continuamos = true;
int auxNota = 0;
int i = 0;
String respuesta;
do {
System.out.println("Ingrese la nota");
int nota = sc.nextInt();
auxNota += nota;
i++;
System.out.println("Continuamos?");
respuesta = sc.nextLine();
if (respuesta == "n") continuamos = false;
}while(continuamos);
System.out.println("El Promedio de notas es : "+(auxNota/i));
}
}