public class Practice {
public static void main(String []args){
Scanner ScanMe=new Scanner(System.in);
char ch,answer='K';
System.out.println("I am thinking of a letter between A and Z.");
ch=(char)ScanMe.nextInt();
System.out.println(ch);
if(answer==ch){
System.out.println("CORRECT");
}
}
}
I created a new scanner, I created my char variables and then I read my char variables in and its giving a mismatch error???