so I have got a class that has the following method signature
public void doStuff(**Object[] lists**)
{
...
}
I am having trouble figuring out how to access the individual elements in the lists
For example, if one of the objects passed (say list[0]) is a Character array (Character[] = {'a', 'd', 'z'}) then how would I find out from this method that lists[0] has 'a' 'd' and 'z' in it?
I have tried code like: Object list0 = list[0]; but then I am absolutely lost on how to get the contents of list[0] (in this case, 'a' 'd' and 'z').
Any ideas?
(UPDATE)
Thanks for the responses. I was able to modify your guys' ideas and make it work :)
lists, you can cast the elements. For example,((Character[])lists[0])[0]