Computer Science Canada Object -> Object[] |
Author: | Zren [ Fri Oct 01, 2010 11:34 pm ] | ||
Post subject: | Object -> Object[] | ||
How would I test, and then convert a Object into an array of Objects? Edit: Ha hah! I figured it out. Any better solutions?
|
Author: | Generic [ Sun Oct 03, 2010 9:18 pm ] |
Post subject: | RE:Object -> Object[] |
Object obj = new Object(); Object[] arr = {obj}; Creates a new Object then initialize an array with one element "obj". |