SyntaxFix
Write A Post
Hire A Developer
Questions
You can write like below. Check out the syntax guidelines in this thread
AClass[] array; ... array = new AClass[]{object1, object2};
If you find arrays annoying better use ArrayList.