Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ダブルを読みやすくするためにアンダースコアを使用して最終的なダブルを作成すると、このエラーが発生しました。メソッドで宣言されましたrun()。
run()
public void run() { final double nanoSeconds = 1_000_000_000.0 / 60.0; }
IntelliJ IDEA 12 を使用しています。
はい、IDE を使用している場合は、デフォルトの言語レベル設定を変更する必要があります。IntelliJ ユーザーの場合、[ファイル] --> [プロジェクト構造] --> [プロジェクト] の下にあります。
モジュールを含むプロジェクトで見つけたので、モジュール設定でもこれを行う必要がありました。