This week's giveaways are in the MongoDB and Jobs Discussion forums. We're giving away four copies of Mongo DB Applied Patterns and 4 resume reviews from Five Year Itch and have the authors/reps on-line! See this thread and this one for details.
I would like to add a toString method to print out all of the elements in the vector. The code will not compile. This is my code. I don't understand why I'm getting this error. The problem is in the AccountList program. -----------------------------------------------------------------
----------------------------------------------------------------- A:\BankProgram\AccountList.java:43: cannot resolve symbol symbol : variable AcctRoster location: class AccountList return AcctRoster; ^ 1 error
[This message has been edited by Kelly Frasure (edited July 22, 2001).] (edited by Cindy to format code)
[This message has been edited by Cindy Glass (edited July 23, 2001).]
Art Metzer
Ranch Hand
Joined: Oct 31, 2000
Posts: 241
posted
0
Hi, Kelly. The problem is, AcctRoster only has scope within the constructor. Make this Vector an instance variable instead, and try it again. Good luck, Art