Hello,
I use no table because later I'll make a lot of operation. In summary I must travel a bit and insert hashmap index columns of the hashmap which are equal to one and not zero in my sleep as ArrayList of ArrayList. Here is my modified code.
Code:
java.util.List lp = new java.util.ArrayList(java.util.Collections.nCopies(nbActivite, null));
for (int i =0; I <10; I + +) { / / Traverse the lines da hash MA containing vectors
List vectmp = (Vector) MA.get(i);
for (int j =0J <nbActivite j + +){ / / Traverse the vector of each line i
int e = ((Integer)(vectmp.get(j))).intValue(); / / E = element of M.A. (i, j)
if (e ==1){
List listTemp = new ArrayList();
lpTemp = (ArrayList) lp.get(j); / / I'll get the list in my lp to add the new item to add
listTemp.add(p);
lp.add(j lpTemp);
}
}
}
Help me with this.
Bookmarks