Please copy and paste the full text of the error message.
And show the full text of the line where the error occurs.
For example Your posted source line was not ended by a ;
You have lots of syntax errors and misplaced }
I'm surprised your IDE let you type in so many syntax errors.
NormR1
Posting Expert
6,677 posts since Jun 2010
Reputation Points: 1,138
Solved Threads: 656
You don't show your import statements so I don't know what the compiler can find definitions for.
Run the code thru a compiler.
My compiler gives better error messages than your IDE.
Read the end of my last post.
NormR1
Posting Expert
6,677 posts since Jun 2010
Reputation Points: 1,138
Solved Threads: 656