This week's book giveaway is in the Security forum.
We're giving away four copies of Securing DevOps and have Julien Vehent on-line!
See this thread for details.
Win a copy of Securing DevOps this week in the Security forum!

Jeff Mezzanotte

Greenhorn
+ Follow
since Oct 12, 2013
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Jeff Mezzanotte

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.



looks like it was the brace on line 18 thanks
4 years ago

Tony Docherty wrote:Welcome to the Ranch.

Why don't you post your code and we will help you find the problem.



4 years ago

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.



Im having the same problem can you post the updated code?
4 years ago