Class sample1 { public static void main(String args[]) { char Ch; System.Out.PRintln("Please enter a number 1-3:"); Ch=(char)System.in.read(); if(Ch==-1) System.out.println("No character entered."); else if (Ch==´1´) System.out.println("You have entered a 1."); else if(Ch==´2´) System.out.println("You have entered a 2."); else if(Ch==´3´) System.out.println("You have entered a 3."); else System.out.println ("You have entered a wrong number."); } }