代码如下
package com.pan.project1.view;
import java.text.MessageFormat;
import java.util.Scanner;
/**
* 用户主界面
* @author Pan
*/
public class OrderOne {
public static void main(String[] args) {
//设置变量
String[] name = new String[5];//顾客姓名
String[] order = new String[5];//点菜信息以及数量
String[] disName = {"黄焖鸡","红烧肉","糖醋鱼","凉面","土豆丝"};//菜名
int[] price = {15,16,17,18,19};//价格
int[] prices = new int[5];//总金额
String[] address = new String[5];//送餐地址
String[] tel = new String[5];//顾客电话
int[] time = new int[5];//送餐时间
int[] state = new int[5];//订单状态
int[] likes = {100,101,102,103,104};//记录点赞数
name[0] = "张三";
order[0] = "黄焖鸡";
time[0] = 14;
prices[0] = 50;
address[0] = "中国";
state[0] = 1;
name[1] = "李四";
order[1] = "红烧肉";
time[1] = 16;
prices[1] = 49;
address[1] = "美国";
state[1] = 1;
//主界面
int choose = 0;
Scanner sc = new Scanner(System.in);
do{
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.print("请选择:");
choose = sc.nextInt();
switch (choose){
case 1:
System.out.println(