give some more details...your requirement is not clear.
SCJP 6- 91%, IBM DB2, IBM RAD Certified
Joined: May 08, 2009
the array is an Object array that holds a linked list.
The linked list holds objects as well.
an ADT of a linked list has been created for this project.
In the end the array is nothing more than an array of List.
the list will represent a matrix.
to create a matrix:
// this will create a nxn matrix.
Matrix A = new Matrix(2);
now I have to to able to change the contents of the list.
In order to able to to this I must first access the matrix then the array and finally the linked list.
inside Matrix() the following is being done:
// an array of list.
List row= new List[n];
then just code on creating the matrix
so the main problem is when i create a new matrix 'A' I am not sure how to access what is inside.
can it be like something like this?
// diplayForward prints out the linkedlist.