R
Ronin
I have absolutely no idea how to do this. I inserted a [] array into a
vector, which then ofcourse became a [][] array, but now can't get it
out back to a Object[][].
Vector vector = new Vector();
vector.addElement(new Object[]{"A","B"});
vector.addElement(new Object[]{"C","D"});
Object obj[] = new Object[m.size()]; //this works so far
m.copyInto((Object[]) obj); //this works so far
Object[][] attribute = (Object[][]) obj; //BANG!!!
why the hell wont it work?
for now I'll just use the crappy m.elementAt() function and cast to [].
All this casting in a loop eats CPU though.
vector, which then ofcourse became a [][] array, but now can't get it
out back to a Object[][].
Vector vector = new Vector();
vector.addElement(new Object[]{"A","B"});
vector.addElement(new Object[]{"C","D"});
Object obj[] = new Object[m.size()]; //this works so far
m.copyInto((Object[]) obj); //this works so far
Object[][] attribute = (Object[][]) obj; //BANG!!!
why the hell wont it work?
for now I'll just use the crappy m.elementAt() function and cast to [].
All this casting in a loop eats CPU though.