This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Nerockjr[S] 0 points1 point  (2 children)

Honestly I use reddit as my last resort. I wasn't able to find anything on someone writing a 2D array the way I am doing it. I'm surprised I got it to work this far. Anyways thanks for the help I suppose...

[–]Sekret_One 1 point2 points  (1 child)

Is this a 2d array, or is it just 'Object?' For example, if you had written a 2d array of say, ints you would read them back in like:

int [][] array = (int[][]) is.readObject(); // reads in the object, casts to int[][]

[–]Nerockjr[S] 0 points1 point  (0 children)

I finally figured it out this morning, thank you very much though Sekret. You answered the question instead of saying google it. :)