这个是完整答案, 希望对你有用、/
import java.util.*;
/** * 使用switch实现登录菜单功能 */
public class LoginMenu { /** * 显示我行我素购物管理系统的登录菜单 */ public static void main(String[] args) { System.out.println(" 欢迎使用我行我素购物管理系统1.0版 "); System.out.println(" 1. 登 录 系 统 "); System.out.println(" 2. 退 出 "); System.out.println("* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * "); System.out.print("请选择,输入数字:");
/* 从键盘获取信息,并执行相应操作---新加代码 */
Scanner input = new Scanner(System.in);
int num = input.nextInt();
switch (num) {
case 1:
/* 显示系统主菜单 */
System.out.println("
欢迎使用我行我素购物管理系统
");
System.out.println("* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
");
System.out.println(" 1. 客 户 信 息 管 理
");
System.out.println(" 2. 购 物 结 算
");
System.out.println(" 3. 真 情 回 馈
");
System.out.println(" 4. 注 销
");
System.out.println("* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
");
System.out.print("请选择,输入数字:");
break;
case 2:
/* 退出系统 */
System.out.println("谢谢您的使用!");
break;
default:
System.out.println("输入错误。
");
break;
}
}
}
野草云月末准备了一些促销,主推独立服务器,也有部分云服务器,价格比较有性价比,佣金是10%循环,如果有时间请帮我们推推,感谢!公司名:LucidaCloud Limited官方网站:https://www.yecaoyun.com/香港独立服务器:CPU型号内存硬盘带宽价格购买地址E3-1230v216G240GB SSD或1TB 企盘30M299元/月点击购买E5-265016G240GB SS...
今天上午有网友在群里聊到是不是有新注册域名的海外域名商家的优惠活动。如果我们并非一定要在国外注册域名的话,最近年中促销期间,国内的服务商优惠力度还是比较大的,以前我们可能较多选择海外域名商家注册域名在于海外商家便宜,如今这几年国内的商家价格也不贵的。比如在前一段时间有分享到几个商家的年中活动:1、DNSPOD域名欢购活动 - 提供域名抢购活动、DNS解析折扣、SSL证书活动2、难得再次关注新网商家...
georgedatacenter这次其实是两个促销,一是促销一款特价洛杉矶E3-1220 V5独服,性价比其实最高;另外还促销三款特价vps,georgedatacenter是一家成立于2019年的美国VPS商家,主营美国洛杉矶、芝加哥、达拉斯、新泽西、西雅图机房的VPS、邮件服务器和托管独立服务器业务。georgedatacenter的VPS采用KVM和VMware虚拟化,可以选择windows...