Did you google what "in scope" means?
A simple example is anything defined within a {} pair is not in scope outside of the {}s
Type: Posts; User: Norm
Did you google what "in scope" means?
A simple example is anything defined within a {} pair is not in scope outside of the {}s
Is that in scope where it is being used that caused the error?
Are you asking this question on other sites? Please post a link on both sites to the other site.
Where is the variable: overdraft defined that is in scope where it is being used?
Does the code execute correctly now? Do you get the expected results?
You left off the line(s) that give the symbol that can be found.
TestCode26.java:363: error: cannot find symbol
int x = that;
^
symbol: variable that <<<<<<<< This...
The ^ does not align with where the error was. Wrapping lines in code tags will preserve spacing. The ^ should be under accountNo.
Banking.java:29: error: <identifier> expected
private Acount...
That was just an example of how to create account numbers that could make it harder for some one to create a valid number without understanding the algorithm. For your case just adding 1 will work.
How is an account number created? Is there a value or list that can be used to determine if a number is valid?
That looks like the valid account numbers range in value from the first account...
The code currently throws exceptions when exceptional conditions are found. Not sure what this question is about.
What code creates valid account numbers? Does it save a list of valid account...