1.11M Members

Array of object

 
0
 

Hi Guys

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

 
1
 

Example:

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

Oracle has an excellent tutorial on arrays.

You
This article has been dead for over six months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article