posted 19 years ago
Hi Friends,
I have classes(A,B..G) and roll numbers.I want to iterate through the data and put them into appropriate classes.Which data structure should i use??because I dont know before hand how many roll numbers might go into a class.I am trying to use a Object array like this:
Oject[][] arr = new Object[7][];
But the problem is I have to specify a "col" dimension,which i dont know and specifying something big impacts the performance.I dont think i can dynamically assign object like this:
Object[0][0] = new Object();
Object[0][1] = new Object();
........
Object[1][0] = new Object();
Or can I?Please help me on this friends.
SCJP 1.4 (88%)<br />SCWCD 1.4 (88%)