I can declare an array of a class type I made. However, I need to pass some values to the constructor, so I pass a few parameters to a working constructor. However, I cannot figure out how declare an array of my class that passes parameters. Can anyone help me out?
i.e. class name[] = new class (param 1, param2)[6];
Anyone have any ideas 'cause Java's complier keeps complaining on this syntax (I know the declaration works without specifying it as an array).
hmm ... after spending nearly an hour trying to figure this out, I find out 2 min after I post here. So, I found it. If anyone else wants to know, pm me.
i.e. class name[] = new class (param 1, param2)[6];
Anyone have any ideas 'cause Java's complier keeps complaining on this syntax (I know the declaration works without specifying it as an array).
hmm ... after spending nearly an hour trying to figure this out, I find out 2 min after I post here. So, I found it. If anyone else wants to know, pm me.
