I want to do a switch in while loop where at the break of every switch statement the while loop stops and ask for an input like F, R, C, Q. The statement below works but the
input is of type int, but the case labels are character literals ( i.e., f,r,c,q). Why don't you just make the input also a char type ?
input
f,r,c,q
char
char input = System.in.read();