View Single Post
  #4 (permalink)  
Old 04-30-2008, 07:21 AM
rattle rattle is offline
Member
 
Join Date: Apr 2008
Posts: 3
rattle is on a distinguished road
and even when i wack the instance names into an array manually, it spits out"
Code:
import java.lang.*; import java.util.*; public class BankManagement{ public static void main(String[] args) { //vars, objects String temp=""; // construct instances of BankAccount and pass initial account information // account-no First Last Type balance credit BankAccount acc01 = new BankAccount(3856296735L,"Jenny","Popdeck","savings",4820.88,-50); BankAccount acc02 = new BankAccount(3478957793L,"Alex","Fryhall","credit",11899,-10000); BankAccount acc03 = new BankAccount(3709409798L,"Joey","Boilcraft","check",333.60,0); String[] accArray={"acc01", "acc02", "acc03"}; for(int i = 0; i < accArray.length; i++){ accArray[i].getAccountDetails(); } } }
Code:
C:\Documents and Settings\User\My Documents\Java\BankManagement.java:20: cannot find symbol symbol : method getAccountDetails() location: class java.lang.String accArray[i].getAccountDetails(); ^ 1 error
Reply With Quote