package edu.xcdq;
import java.util.Scanner;
public class QishiCaidan {
public static void main(String[] args) {
}
public void show(){
System.out.println("歡迎使用商城后臺管理系統(tǒng)");
System.out.println("*******************");
System.out.println("1 查看商品信息");
System.out.println("2 新增商品信息");
System.out.println("3 刪除商品信息");
System.out.println("4 賣出商品");
System.out.println("5 商品銷售排行榜");
System.out.println("6 退出");
System.out.println("*******************");
System.out.println("請選擇對應(yīng)的操作");
Scanner scanner = new Scanner(System.in);
int gongnengBianhao = scanner.nextInt();
switch (gongnengBianhao){
case 1:
System.out.println("查看商品信息");
break;
case 2:
System.out.println("新增商品信息");
break;
case 3:
System.out.println("刪除商品信息");
break;
case 4:
System.out.println("賣出商品");
break;
case 5:
System.out.println("商品銷售排行榜");
break;
case 6:
System.out.println("謝謝使用");
break;
default:
System.out.println("你輸入的功能編號有誤");
break;
}
}
}