fred rosenberger wrote:I don't even see how this would compile. The ONLY place where you use the variable "acctNumber" is in line 40 - you never declare it or initialize it.
Further, on casual inspection, i would think you'd get an infinite loop... Your getAccountNumber method seems to call itself I think:
also, it's either named wrong or declared wrong. generally, something called "getXXX" is going to return a value - i.e. the thing you want to get. Your method is declared as 'void', which means it returns nothing.
your rite I changed
to
what I also did prior was have the class Account open but I still can not get line 40 to work rite