Unknown error
I just need this to compile and and display the Graphical User Interface...thanks
package Bank;
import java.io.*;
publicclass Bank
{
/*arrays created and initialised*/
Array accountList[] =new Array[21];
Array costumerList[] =new Array[21];
public String bankName ="The World Ban''K''";
/*public SavingsAccount (String ACCOUNTNUMBER)
{
}*/
publicvoid bankName(String bankName)
{
this.bankName = bankName;
}
/*accessor method*/
publicvoid getBankName()
{
return bankName;
}
/*public String getAccounts(accountList[])
{
for (int i=0;i<=20;i++)
{
return accountList[i];
}
}
public String getCustomers(costumerList[])
{
for (int i=0;i<=20;i++)
{
return costumerList[i];
}
}*/
/*mutator methods*/
publicvoid creditAccount()
{
balance = balance + credit;
}
publicvoid debitAccount()
{
if(balance >= 0){
balance = balance - debit;
}
}
/*accessor/print method*/
publicvoid printCustomers(){
for (int i=0;i<=20;i++)
{
System.out.println(costumerList[i]);
}
}
publicvoid printAccounts(){
for (int i=0;i<=20;i++)
{
System.out.println(accountList[i]);
}
}
}
/*public void printAccountCostumer() {
for (int i=0;i<=20;i++)
{
System.out.println(costumerList[] + accountList[i]);
}
}*/
publicstaticvoid tui(){
System.out.println("welcome to The Ban''K'''s database");
System.out.println("\n Please select from the available options \n");
System.out.println(" 1. View existing accounts");
System.out.println(" 2. View existing account holders");
System.out.println(" 3. View existing accounts and their ownerships");
System.out.println(" 4. Search for a costumer");
System.out.println(" 5. Add a new costumer and create a new account for them");
System.out.println(" 6. Exit system");
}
publicstaticvoid main(String[] args){
char choice ='0';
do{
showMenu();
try{
choice = (char) System.in.read();
}catch (IOException e){
}
switch (choice){
case'1':
printAccounts();
break;
case'2':
printAccountHolders();
break;
case'3':
printAccountAndOwnership();
break;
case'4':
System.out.println("Input the costumer's costumer ID");
printAccountHolder();
break;
case'5':
createAccount();
break;
case'6':
system.exit(0)
break;
}
}while (choice >'0' && <'7');
}
public String toString()
{
return"Account number: " + ACCOUNTNUMBER +"Account holder: " +
ACCOUNTHOLDER +" Account balance: " + balance +" Interest rate: "
+ interestRate;
}

