The only soultion I have found in Java involves creating the array at runtime: public class Outer { public class LineType { int id; String descr; ...
stackoverflow.com