Posted By:
Aejaz_Sheriff
Posted On:
Monday, June 9, 2003 01:14 AM
What is the meaning of this - Object[] x = {new String[]{"a","b"}}; I have a function which takes Object[] as a argument. And I have data structure like this - Name = Zoolander Name = Hansel Name = Mugatu I am not interested in the Name part. This has to be converted to - Object[] x = {new String[]{"a","b"}} It works if I hard code the values like this - Object[] x = {new String[]{"Zoolander","Hansel","Mugatu"}; Thanks in advance
More>>
What is the meaning of this -
Object[] x = {new String[]{"a","b"}};
I have a function which takes Object[] as a argument. And I have data structure like this -
Name = Zoolander
Name = Hansel
Name = Mugatu
I am not interested in the Name part. This has to be converted to -
Object[] x = {new String[]{"a","b"}}
It works if I hard code the values like this -
Object[] x = {new String[]{"Zoolander","Hansel","Mugatu"};
Thanks in advance
<<Less