I have a Java String array:
public static final String[] FIELDS_NAMES = { "Albert", "Berta", "Carl" };
public static final String[] FIELDS_NUMBERS = { "123", "456", "789" };
and would like to create a third constant out of the one I already have. Currently I do it by repeating everything:
public static final String[] FIELDS_ALL = {
"Albert", "Berta", "Carl", "123", "456", "789"
};
But what I really want is this:
public static final String[] FIELDS_ALL = {FIELDS_NAMES, FIELDS_NUMBERS};
Any idea how to do that in Java? Obviously I do not want to run any loops to shuffle things around...