C macros would solve my problem very easily... but it appears that Java requires code to achieve the effect of declaring sub-arrays that are statically assembled by the compiler. The intent is to be able to define a global array / list of Strings that can be reused across a large number of classes.
C construct using (evil) macros
global.c source file
#define GLOBAL_HTML_ATTRIBUTES "accesskey", "class", "contenteditable", "contextmenu", "dir", "draggable", "dropzone", "hidden", "id", "lang", "spellcheck", "style", "tabindex", "title", "translate"
a.c source file
#define A_ELEMENT_ATTRIBUTES "download", "href", "hreflang", "media", "name", "rel", "target", "type"
char[] attributes = {GLOBAL_HTML_ATTRIBUTES, A_ELEMENT_ATTRIBUTES};
Is there a similar Java construct?
And yes, I'm aware of the other questions posted that ask about concatenating arrays of Strings ... this question is intended to help a long time C developer acclimate to Java programming idioms.