Okay, so basically I am trying to iterate through Objects in my
private ArrayList<Temperatures> recordedTemperature;
and display each one who shares the same "location". The location is an int variable initialized in the constructor of the Temperatures class:
public Temperatures(int location, int day, double temperature)
{
this.location = location;
this.day = day;
this.temperature = temperature;
}
how would I iterate through all the objects in the Temperatures ArrayList and find out the ones who have a matching location attribute and return them?