This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I need to create an array of two objects, one object will be an instance and the other object will be the occurance of that instance. I forget how to send these two objects of different types into the array.
Do you mean that one will be the name of the class and the other will be an object of that class? Object myArray = new Object; Then you can do WhateverClass myObj = new WhateverClass(); myArray = "WhateverClassName"; myArray = myObj; etc. [ February 05, 2002: Message edited by: Cindy Glass ]
"JavaRanch, where the deer and the Certified play" - David O'Meara