Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 17th, 2012  |  syntax: Java  |  size: 1.19 KB  |  hits: 25  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. import javax.swing.JOptionPane;
  2.  
  3.  
  4. public class Main  
  5. {
  6.         //public Main()
  7.         //{
  8.                
  9.         //}
  10.         public static void main(String[] args)
  11.         {
  12.                 Bank bank = Bank.getInstance();
  13.                 //Client client = new Client();
  14.                 String start=JOptionPane.showInputDialog("Good day. you want bank opiration click B or you want client opiration click C or you want exit click E");
  15.                 //while (start.equalsIgnoreCase("B"))
  16.                 String bankMenu=JOptionPane.showInputDialog("now you at BANK OPIRATION, you want get bank balance so click GBB or if you want add client so click ADC or if you want remove client so click REC");
  17.                         if(start.equalsIgnoreCase("gbb")){
  18.                                 System.out.println(bank.getBalance());
  19.                         }/*else if(start.equalsIgnoreCase("ADC")){
  20.                                 System.out.println(bank.addClient());
  21.                         }else{
  22.                                 System.out.println(bank.removeClient());
  23.                         }
  24.                 }else{
  25.                         String clientMenu=JOptionPane.showInputDialog("now you at CLIENT MENU, if you want get client balance so click GCB, if you want get total sum client so click GEF");
  26.                         if (start.equalsIgnoreCase("gcb")){
  27.                                 System.out.println(client.getClientBalance());
  28.                         }else if(start.equalsIgnoreCase("gef")){
  29.                                 System.out.println(client.getFortune());
  30.                         }*/
  31.         }
  32. }