if(accountNum != accounts[count].getAcctNumber())
Step through the code and consider the operations one by one. When the above line is first executed, has accounts[count] yet been instantiated?...
Type: Posts; User: copeg
if(accountNum != accounts[count].getAcctNumber())
Step through the code and consider the operations one by one. When the above line is first executed, has accounts[count] yet been instantiated?...
You mention a NullPointerException in the title of your post, but no mention of it in your post. Is this the problem? Where is this exception being thrown (recommended you post the full stack trace)?