I have an algorithm problem and i have created a class for my objects
hard problem is how can i create a matrix that has increasing size and every rows in matrix is also increasing
for example
matrix is :
0 1 2 3 4 5 6 7 ....................
1 object
2 object object
3 object object object object object object object
4 object object object object
5
.
.
.
.
.
good explanation for matrix : image Untitled.jpg
every row has increasing size and also it is not clear that howmany rows ll be created
inside object of matrix has array, int and double value. my first idea is creation of a class name is example_name for objects
Arraylist<example_name>[] algoritmaIci = new ArrayList[2500]; //this gave a warning
2500 is just to assign huge size because i guess matrix size wont be bigger than 2500
or can i create arraylist of arraylist like:
ArrayList<Arraylist<example_name>> algoritmaIci = new ArrayList<Arraylist<example_name>>();
what is your other advise for solution?