Java enum : Refactoring switch statements 'constant expression required' compile error?

前端 未结 4 1811
没有蜡笔的小新
没有蜡笔的小新 2020-12-29 05:41

I have a class declaring constants for my app

public class GroupConstants {
    ..
    public static final int INTEGER_VALUE = 1;
    public static final int         


        
4条回答
  •  情深已故
    2020-12-29 06:10

    in eclipse IDE is simple ,in switch sentence CTRL + 1 and convert switch sentence - if-else sentence http://tools.android.com/tips/non-constant-fields

提交回复
热议问题