I have class:
public class HarddriveStorage {
...
}
I make instances of the created class:
HarddriveStorage hds1 = new HarddriveStorage ();
HarddriveStorage hds2 = new HarddriveStorage ();
HarddriveStorage hds3 = new HarddriveStorage ();
Then I add them to a linked list:
LinkedList hdList = new LinkedList();
hdList.add(hds1);
hdList.add(hds2);
hdList.add(hds3);
When I want to access the objects, I get a reference instead of value:
hdList.get(1);
I get:
org.cloudbus.cloudsim.HarddriveStorage@578486a3
What should I do to get "hds2" for example in return?
What I have tried:
I have read documents on the web, but couldn't make it.