public static void main(String args[]) throws java.io.IOException
char a; System.out.println("Enter a number from 1--3:"); a=(char)System.in.read(); switch(a)
case´1´:System.out.println("win a Car!");break; case´2´:System.out.println("picked the goat");break case´3´:System.out.println("get to keep your 100"); break; default:System.out.println("entry");
System.out.println(":"); System.out.println("Number of digits="+numberOfDigits+""); System.out.println("Number of spaces="+numberOfSpaces+""); System.out.println("Number of others="+numberOfOthers+"");