Java
public static TheWeather GetAverageForMonth(List entries, int year, int month)
{
TheWeather GetItem = entries.First();
return GetItem;
}from this method i would like to find the Avergage for EX year 2018, month = 5 which they are already saved in the List and the The Class TheWeather has the Properties :
C#
public class TheWeather
{
public DateTime dateTime { get; set; }
public double Actual_mean_temp { get; set; }
public double Record_min_temp { get; set; }
public double Record_max_temp { get; set; }
public double Actual_precipitation { get; set; }
}without using the LINQ i would like to find the Average please .

Nilesh SawardekarRank #648 · 3.7K reputationPosted May 3, 2019, 6:54 AM EDT
Nilesh SawardekarRank #648 · 3.7K reputationPosted May 3, 2019, 6:08 AM EDT
Abdalla OmranRank #5,857 · 284 reputationPosted May 3, 2019, 6:26 AM EDT