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;

}

[6489 byte] By [K-o-f-ia] at [2007-11-26 12:44:21]
# 1
Ummmmm.....you've got a LOT of problems in there. dide you just write that whole thing out without ever trying to compile or test it?
Norweeda at 2007-7-7 16:21:53 > top of Java-index,Java Essentials,New To Java...
# 2
no, I'm justt not very good at java, it reuse of code from different projects that I did. Can someone please please help!!!!
K-o-f-ia at 2007-7-7 16:21:53 > top of Java-index,Java Essentials,New To Java...
# 3
All Ineed is for the GUI to be display no mater whatever has to be taken out/put into comments
K-o-f-ia at 2007-7-7 16:21:53 > top of Java-index,Java Essentials,New To Java...
# 4
> All Ineed is for the GUI to be display no mater whatever has to be taken out/put into commentsGUI? You have no GUI-related stuff in there whatsoever. The GUI stuff should likely go in a separate class.
doremifasollatidoa at 2007-7-7 16:21:53 > top of Java-index,Java Essentials,New To Java...
# 5
What I'm telling you is that your code is TOTALLY broken and doesn't even make sense. Go relearn the basics.What do you think that this does?Array accountList[] = new Array[21];what's the type there?
Norweeda at 2007-7-7 16:21:53 > top of Java-index,Java Essentials,New To Java...
# 6
the TUI is the most important thing to me, I know my code is broken and I haven't really grasped the basics but I'm in desperate need of this to compile & display the TUI
K-o-f-ia at 2007-7-7 16:21:53 > top of Java-index,Java Essentials,New To Java...