package com.caishui.model;
import java.util.Scanner;
public class HonronUtil {
public staticvoidshowConsole(String msg){
System.out.println(msg);}
public staticvoidshowMenu(){
HonronUtil.showConsole("----------------歡迎使用V2.0英雄在線管理系統---------------------");
HonronUtil.showConsole(" 功能菜單如下");
HonronUtil.showConsole("--1.查詢所有英雄");
HonronUtil.showConsole("--2.增加英雄");
HonronUtil.showConsole("--3.英雄PK");
HonronUtil.showConsole("--4.退出系統");
HonronUtil.showConsole("--5.刪除英雄");
HonronUtil.showConsole("--6.一鍵刪除全部英雄");
HonronUtil.showConsole("--7.註冊");
HonronUtil.showConsole("--8.登錄");
HonronUtil.showConsole("--9.管理員登錄");}
public static String inputString(){
Scanner scanner= new Scanner(System.in);
String value= scanner.next();return value;}}
package com.caishui.model;
public class StarGame {
public staticvoidmain(String[] args){
HonronUtil.showMenu();
String str =HonronUtil.inputString();}}