このコードにはエラーがあります
public class DoIt {
public static void main(String[] args) {
final class Apple {
public static String place = "doIt";
}
Thread thread = new Thread(new Runnable() {
@Override
public void run() {
System.out.println(Constants.place);
}
});
thread.start();
}
}
エラー-The field name cannot be declared static in a non-static inner type, unless initialized with a constant expression