I have here my code and I am trying to check whether the user inputs Y or N to get to the switch statement, however even if I write Y or N it gives me the error message, what am I doing wrong? thanks in advance
public void anotherAction() throws IOException{
    System.out.println();
    System.out.println("Would you like to perform an additional action? 'Y' or 'N'");
    while(!reader.hasNextLine()){
        System.out.println("Enter either 'Y' or 'N'");
    }
    String response =reader.nextLine().toUpperCase();
    while(response != "Y" || response != "N"){
        System.out.println("Enter 'Y' or 'N'");
        response = reader.nextLine();
        continue;
    }
    switch(response){
        case "Y":
            cc.getCommand(this.makeOption());
            break;
        case "N":
            System.out.println("Exiting System...");
            break;
    }
}
 
     
    