Dear prob solver,
i have a problem with array lists. i am using array lists for adding objects. i just want to know, when you are adding an object to an arraylist whats the value u pass to the add method???
eg:
i have a class call vertex and i want to add an object from that class. so to add that object how to i add that to the arraylist??? do i need to pass the string id or pass an instant of the relevant class??? The code is below
vertex v;
string source_id
arraylist a = new arraylist();
a.add(source_id??) or a.add(v)??? what is correct?
plz send me an answer asap... cz its for my final year project that i need to submit on next wek.. thnx aloot,,,,,,,,
Ran