Hello,
I use a vector to store hash table, storage is done without problems. But when I browse the vector, I returned an item that does not seem to exist in the vector. The problem is in reading the vector. Here is my code
Code:
/ / write
if (new_entry) {
tps.addElement(tp);
System.out.System.out.println("Elements read in the 1st loop" + Topics.elementAt(f));
f + +;
tp.clear();
...
}
/ / reading
for (int m = 0; M <tps.size(), M + +) {
System.out.System.out.println("========= "+ " " + Topics.elementAt(m));
}
Bookmarks