import java.util.Scanner;
public class A04 {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner input = new Scanner (System.in);
System.out.println("欢迎使用MyShopPing管理系统");
System.out.println("\n********************************\n");
System.out.println("\t\t1.客 户 信 息 管 理\n");
System.out.println("\t\t2.购 物 结 算\n");
System.out.println("\t\t3.真 情 回 馈\n");
System.out.println("\t\t4.安 全 退 出\n");
System.out.println("\n********************************\n");
int choice=0;
String show="";
do{
System.out.println("请选择,输入输入数字:");
choice =input.nextInt();
switch (choice) {
case 1:
show="执行客户信息管理";
break;
case 2 :
show="执行购物结算";
break;
case 3 :
show="执行真情回馈";
break;
case 4:
show="程序结束";
break;
}
}while(choice>=5);
System.out.println(show);
System.out.println("\n程序结束!");
}
}
转载于:https://blog.51cto.com/765133133/1420238