Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
You have already initialized the variable with a value once, outside the method, as far as I know, you cannot change the variable. In the body of the method, you can assign a new one. Not within the class.
Because code cannot be written inside a class outside of methods and initialization sections.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question