John Joe wrote:Look like you want to call AccountManager class. Replace your code to this
Note that accountManager is an object, not class.
What is the error after you changed accountManager to AccountManager ?
tony narloch wrote:Unfortunately that has returned error: cannot find symbol - variable accountManager
I can see
tony narloch wrote:. . . I thought I had properly declared used the constructor etc, but I cannot for the life of me understand where I am going wrong?
I thought it was accountManager. You have to assign it to something, but not 10 because it is the wrong type of value.
tony narloch wrote:. . . accountmanager =10;
You will have to decide what accountManager should be. You are writing the program, you should know what the different variables are supposed to mean. I still think you have too many accountManagers around.
However, my confusion lies in what exactly I should specify the value of accountmanager to be
Knute Snortum wrote:Not quite:
tony narloch wrote:String inputAmount = reader.nextLine();
Both of these lines are generating "java.lang.NullPointerException"
Which my very limited understannding of Java means....that one of my variables is null? But I do not see any null references?
I told you hours ago that line 30 would cause exceptions. Look there.
Knute Snortum wrote:. . . "java.lang.NullPointerException" . . . .
Apart from the formatting: Yes, that will work It also means you don't need the Scanner parameter in the constructor.
tony narloch wrote:Yes.
Um, it should be: