While loop validation problem
Code:
while (Character.toUpperCase(choice) != 'N' || != 'R')
{
System.out.println("\n+++++++++++++++++++++++++++++++++++++++++++++++++++++");
System.out.println("\tPlease select 'R' or 'N' to continue ");
System.out.println("+++++++++++++++++++++++++++++++++++++++++++++++++++++\n");
System.out.println("\tEnter 'N' for New Install or 'R' for Repair <N/R>: ");
c = input.nextLine();
choice = c.charAt(0);
}
jGrasp is telling me that || can't be used in a while loop with a char type.
so how would i use a while loop to validate 'r' 'R' 'n' 'N' only else error?
please help, thought that the || "or" would do the trick