public Account findByInterest(String interest){
    for(Map.Entry<Long, Account> e : accounts.entrySet()){
        for(int i = 0; i < e.getValue().getInterests().size(); i++)
        {
            if(e.getValue().getInterests().get(i) == interest){
                return e.getValue();
            }
        }
    }
    return null;
}
I'm trying to search in a HashTable of Objects to find an objected with a List of Strings, which has the same string as this method receives... What am I doing wrong?
 
     
    