⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 customer.java

📁 实现单人模拟银行系统
💻 JAVA
字号:
package lab;

import javax.swing.JOptionPane;

//用户端
public class Customer extends Name{
   static String[] args = null;
   Name customer;
   public Customer(){
  super();
   customer=new Name();       
   }
   
   //首次进入
   public Customer(boolean play){
   int isOrNot=JOptionPane.showConfirmDialog(null,
               "是否现在就要进入模拟银行系统",
               "欢迎使用",
                JOptionPane.YES_NO_OPTION);
      play = (isOrNot == JOptionPane.YES_OPTION );
      if(play){         
      String input=JOptionPane.showInputDialog("请选择您需要执行的功能:1.管理员   2.操作员");
  if(Integer.parseInt(input) == 1){    
     Name.main(args);
      }
      else if(Integer.parseInt(input) == 2) Operator.main(args);
       }
   }
   
   //选择角色
   public static void enter(){
   String input=JOptionPane.showInputDialog("请选择您需要执行的功能:1.管理员   2.操作员");
  if(Integer.parseInt(input) == 1){    
     Name.main(args);
      }
      else if(Integer.parseInt(input) == 2) Operator.main(args);
   }
/**
 * @param args
 */
public static void main(String[] args) {
// TODO Auto-generated method stub
boolean keepPlaying = true;
        new Customer(keepPlaying);


    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -