
Untitled
By: a guest on
Jun 17th, 2012 | syntax:
Java | size: 1.19 KB | hits: 25 | expires: Never
import javax.swing.JOptionPane;
public class Main
{
//public Main()
//{
//}
public static void main(String[] args)
{
Bank bank = Bank.getInstance();
//Client client = new Client();
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");
//while (start.equalsIgnoreCase("B"))
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");
if(start.equalsIgnoreCase("gbb")){
System.out.println(bank.getBalance());
}/*else if(start.equalsIgnoreCase("ADC")){
System.out.println(bank.addClient());
}else{
System.out.println(bank.removeClient());
}
}else{
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");
if (start.equalsIgnoreCase("gcb")){
System.out.println(client.getClientBalance());
}else if(start.equalsIgnoreCase("gef")){
System.out.println(client.getFortune());
}*/
}
}