I made several instances of objects in a hashtable and want to call a method from each of them.
I made a for that goes through an enumeration of the values retrieved from said hashtable, but I'm unsure how to actually call the method on each object.
for(Enumeration<Agent> AgentEnum = AgentList.elements(); AgentEnum.hasMoreElements();){
//content+=
AgentEnum.nextElement();
}
Content should receive the return of the method I'm trying to call from class Agent.