That'll be it for tonight. Back tomorrow.
Type: Posts; User: Norm
That'll be it for tonight. Back tomorrow.
I renamed your class for my tests. Replace ArraysProblem with the name that you have.
public static void main (String[] args) {
new ArraysProblem(); // 1 call the constructor
} // end main() // 2
public...
code in static methods can not access variables and methods that only exist when an instance of the class is created.
Two solutions:
make everything static
have the main method create an instance...
Please copy and paste here the error messages. I can't see them from here.
Normally you have to compile a source before executing it. The IDE is hiding that from you.
The java program is looking for a static method named main that it calls to start execution.
Check that...
Do you mean it compiles and then fails or are there compiler errors?
Please copy and paste the full text of the error messages here.