是否可以在JAVA中以这种方式定义数组,否则是否有替代方法关闭此定义?
private final int CONST_0= 0;
private final int CONST_1= 1;
private final int CONST_2= 2;
private final int CONST_3= 3;
private final String[] CONST_TXTRECORDS = new String[]
{[CONST_0] = "test0",
{[CONST_1] = "test1",
{[CONST_2] = "test2",
{[CONST_3] = "test3"};