package com.feige;
import java.util.Scanner;
public class Main {
Scanner scanner = new Scanner(System.in);
public Main() {
}
//启动菜单
public void menu() {
System.out.println("****************************");
System.out.println("\t\t欢迎使用快递系统\t\t");
System.out.println("*****************");
System.out.println("1用户注册");
System.out.println("2登录系统");
System.out.println("3商品查看");
System.out.println("4退出系统");
System.out.print("请输入:");
int funNo = scanner.nextInt();//功能编号
switch (funNo) {
case 1:
//用户注册
break;
case 2:
//用户登录
break;
case 3:
//商品查看
break;
case 4:
default:
System.out.println("退出系统");
scanner.close();//把输入流关闭
System.out.println(0);//0正常退出非0参数,不正常中断
}
}
}