Java Cannot Create A Generic Array Of Structures In Cpp