Wednesday, May 11, 2022

Java Initialize Array of Structs

A couple days ago I asked a couple Java questions that I knew perfectly in 2014 before my stroke.  There are still some mysteries there but one think that is easy in C seems to be clumsy in Java.  Initialize an array of structs without any code.  In Java you apparently need to initialize each element of the array with a new StructClass (...).  This is clumsy and ugly.

No comments:

Post a Comment