Suppose I have an ArrayList<Account> of my custom Objects which is very simple. For example:
class Account
{
public String Name;
public Integer Id;
}
I want to retrieve the particular Account object based on an Id parameter in many parts of my application. What would be best way of going about this ?
I was thinking of extending ArrayList but I am sure there must be better way.