Just look on this program
class
test {
Object[] p=new Object[5];
piblic void sum()
{
Object[] q=new Object[2];
String s="hi";
q[0]=s;
s="hello";
q[1]=s;
p[0]=q;//adding an object array to p;
return p;
}
public static void main(String ar[])
{
test test1=new test();
test1.sum();
System.out.println(p[0]);
//here i want to get the values of q;
}
}
the code will compile and run properly.. but how can i access the values of q from p[0]; is it possible