consider the following class:
package org.cloudbus.cloudsim.ACO;
/**
*
* @author Dinesh Gupta
*/
public class VMLOADFITNESSTABLE {
public int vmid;
public double memoryused;
public double cpuused;
public double fitnessvalue;
public int loadstatus;
};
i have created a list of objenter code here
ects for this class using the following state:
List<VMLOADFITNESSTABLE> vlft = new ArrayList<VMLOADFITNESSTABLE>();
then i have added multiple elements to the same list. when i try to display all elements in the list, i observe that the last element is displayed multiple times. it feels like that the elements have been overwritten by the last element.
please suggest some answer,