Teller tellersToday = new Teller[numberOfTellers];
// Completly ineffeciant but it works. Vector line = new Vector[numberOfTellers];
line.add((Teller)tellersToday); I get after executing: Exception in thread "main" java.lang.NullPointerException at myprojects.bank.EventItem.startEventSystem(Bank.java:205) at myprojects.bank.EventItem.<init>(Bank.java:140) at myprojects.bank.Bank.displayStartQuestions(Bank.java:114) at myprojects.bank.Bank.main(Bank.java:28)
Originally posted by John Lister: Teller tellersToday = new Teller[numberOfTellers];
This line is only instantiating an array *of references to Vector objects*. The references are initialized with null values. If you want them to point to actual Vector objects, you need to assign those to them.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus