Hi Guys

i do not know how to create Array of object could you help me plese?

Recommended Answers

All 2 Replies


Object[] myArrayOfObjects = new Object[2];
myArrayOfObjects[0] = "Hello";
myArrayOfObjects[1] = new Integer(42);
Member Avatar

Oracle has an excellent tutorial on arrays.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.