While loop validation problem
jGrasp is telling me that || can't be used in a while loop with a char type.
while (Character.toUpperCase(choice) != 'N' || != 'R')
System.out.println("\tPlease select 'R' or 'N' to continue ");
System.out.println("\tEnter 'N' for New Install or 'R' for Repair <N/R>: ");
c = input.nextLine();
choice = c.charAt(0);
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