Why is this int switch valid:
public class Foo { private final static int ONE = 1; private final static int TWO = 2; public static void main(String
Or simply use a if-elseif case :
private final static int ONE = 1; private final static int TWO = 2; public static void main(String[] args) { int value = 1; if(value.equals(ONE)){ } else if(value.equals(ONE)){ } }