Code:
public static final int START=new Integer("start").intValue();
public static final int STOP=new Integer("stop").intValue();
ist das konstant oder nicht? Der Compiler beschwert sich nicht aber:
Code:
switch(new Integer([String]).intValue()){
case STOP:
...;
break;
case START:
...;
break;
}
geht auch nicht.
Also: Ist es eine Konstante oder nicht?