importjava.util.Scanner;publicclassxia{publicstaticvoidmain(String[]args){Scannerinput=newScanner(System.in);System.out.println("\n\n\t\t\t欢迎使用我行我素购物管理系统\n"...
import java.util.Scanner;
public class xia{
public static void main(String[] args){
Scanner input=new Scanner (System.in);
System.out.println("\n\n\t\t\t欢迎使用我行我素购物管理系统\n");
System.out.println("* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * \n");
System.out.println("\t\t1.客\t他\t户\t信\t息\t管\t理\n");
System.out.println("\t\t2.购\t物\t管\t理\n");
System.out.println("\t\t3.真\t情\t回\t馈\n");
System.out.println("\t\t4.注\t销\n");
System.out.println("* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * \n");
System.out.println("\n请选择,输入数字:");
boolean Isok=false;
do{
int num=input.nextInt();
System.out.println("请输入正确的数字");
switch(num){
case 1:
System.out.println("客户信息管理");
Isok=false;
break;
case 2:
System.out.println("购物结算");
Isok=false;
break;
case 3:
System.out.println("真情回馈");
Isok=false;
break;
case 4:
System.out.println("注销");
Isok=false;
break;
default:
Isok=true;
break;
}
}while(Isok);
System.out.println("程序结束");
}
}
我在线等待答案.
展开