问题 If it is possible, how can I create a static multidimensional array in Java with different primitive datatypes per dimension? By static, I mean the primitive array that is not dynamic like an ArrayList would be. 回答1: Dimensions in an Array are always from type int. Think about it! int a = 4; int b = 5; Shoe shoe = new Shoe (Color.RED, 42, "Leather"); Hat hat = new Hat (17, Color.Black); Foo foo = foos[a][b]; Zilch pop = bars[shoe][hat]; // no go If you have a multidimensional array of Foos,