Ошибка: имя поля не может быть объявлено статическим

public class Application {
    public static void main(String[] args) {
        final class Constants {
            public static String name = "globe";
        }
        Thread thread = new Thread(new Runnable() {
            @Override
            public void run() {
                System.out.println(Constants.name);
            }
        });
        thread.start();
    }
}

Ошибка компиляции:The field name cannot be declared static in a non-static inner type, unless initialized with a constant expression

Решение этого?

Ответы на вопрос(2)

Ваш ответ на вопрос