I have 3 fields for defining a unique object, e.g.: region, name, platform which are string values. A list of such objects has to be compared with another list of such objects. I was thinking to create an object for that such as
Class myObject{
private String region;
private String name;
private String platform;
}
and then create a list of them to compare each objects in both the lists. Somebody please provide me a better solution for this problem.
I have two tables with columns, id,region, platform, name, zone, count ,etc and the values repeat in this table. Another table has id, region, platform, name zone. First table gives the list of reserved AWS EC2 instances and second table the list of AWS EC2 instances which are running now. I need to find out if all the reserved instances are currently running or is there anything unutilized.
Can anyone suggest a good solution for this problem.