I use CodeModel to generate Java code. I expect output like this:
public static final String[] COLUMNS = {ID, CODE, NAME};
I tried:
definedClass.field(JMod.PUBLIC|JMod.STATIC|JMod.FINAL, String[].class, fieldName, JExpr.newArray(codeModel.ref(String.class)));
but I do not know how to "add" values to the array.