package HomeWork;
import java.util.Scanner;
public class Test15 {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner in = new Scanner(System.in);
System.out.println("请输入一段话:");
String name = in.next();
switch(name){
case "Robert":
System.out.println("Hi Bob!");
break;
case "Richard":
System.out.println("Hi Rich!");
break;
case "Barbara":
System.out.println("Hi Barb!");
break;
case "Kalee":
System.out.println("Hi,My Friend!");
break;
default:
System.out.println("Hi,"+name+"!");
break;
}
}
}