Tony Docherty wrote:To fix the code do as Rob suggested to the original poster.
If it's not immediately obvious, then starting at the line where you create a new Thread object, count +1 for each opening brace and -1 for each closing brace. When you are back to 0 you have finished the local class definition and after the final closing brace is where the errant line goes. If your count goes to -1 rather than going positive then you are starting the block with a closing brace instead of an opening brace.
Rob Spoor wrote:Welcome to the Ranch!
I've added code tags and some better indentation to your post. Especially that better indentation should show you that statement is not where you want it to be - inside the logoTimer anonymous class definition.