SyntaxFix
Write A Post
Hire A Developer
Questions
You have two options:
Define a named class. Pass your parameter to the constructor of the named class.
Have your anonymous class close over your "parameter". Be sure to mark it as final.
final