I think this:
What you are showing here it should be something like:
if(
customer.age //it is a variable not a method so no '()'
>= Age.valueOf("Legal")) // it is valueOf(String)
Type: Posts; User: RvDelft
I think this:
What you are showing here it should be something like:
if(
customer.age //it is a variable not a method so no '()'
>= Age.valueOf("Legal")) // it is valueOf(String)
Alright let me thy this:
In your main class you are making a reference:
But you don't use it.
Then you call the method but you on the 'm' reference. In this method you call the array objects...