public class switch { public static void main(String[] args) { ConsoleReader console = new ConsoleReader(System.in); System.out.print("Enter a String: "); String line = console.readLine(); switch(line) { case "hello": System.out.println("Match Found: " + line); break; default: System.out.println("Nothing"); break; } System.out.print("Enter a number: "); double number = console.readDouble(); switch(number) { case 1: System.out.prinln("Match Found: " + number); break; default: System.out.prinln("Match not Found"); break; } }//main }//class