I got this error when creating the final double, using underscores to make the double readable. It was declared in the run() method.
run()
public void run() { final double nanoSeconds = 1_000_000_000.0 / 60.0; }
I am using IntelliJ IDEA 12.
In IntelliJ IDEA you need to change the Project language level in the project settings to level 7.0 :
IntelliJ IDEA
Project language level
7.0
Yes. You need to change the default language level settings, if you use, and the IDE. For IntelliJ users, this is located under File → Project Structure → Projects.
Source: https://habr.com/ru/post/1485052/More articles:Will the restriction on Twitter be limited to the fact that I can do the data mining necessary to build a complete social network schedule of about 600 thousand users? - rate-limitingHow to try to close the popup by pressing a button after executing any code? - jquery-mobileAngularJS $ clock is called every time you press a text key - angularjsGetting URI of a web application at startup - asp.netCannot pass instance of System.out properly FilterOutputStream - javaTwo flags, you can choose only one - androidMVC Objects, Models, and Data Access - oopProblems finding Big O Time for this cycle - big-oIs cascading deletion enabled? - sqlGalaxy S4 "Make Error Report" dialog never gets initialized - androidAll Articles