package com.company; import java.awt.*; import java.util.Scanner; public class Users { public static void main(String[] args) { System.out.println("欢迎使用neusoft用户管理系统"); System.out.println("=========================="); System.out.println("用户登录-----------------1"); System.out.println("退出---------------------2"); Scanner sc = new Scanner(System.in); int iChoice = sc.nextInt(); while (true) { if(iChoice != 1 && iChoice != 2) { System.out.println("您输入的命令不正确,请重新输入"); iChoice = sc.nextInt(); } else if(iChoice == 1) { Login.ShowLogin(); break; } else if(iChoice == 2) break; } } }
菜单页面
最新推荐文章于 2020-08-12 22:06:44 发布