Overcoming limitations of arraying within Java