Examples/AirlineFaresNew/src/main/java/com/cs6240/airline/Calculations.java
/*
	 * This method calculates mean for a airline for a month 
	 * Returns output in a map : (month airline, mean)
	 */
This method calculates mean for a airline for a month
Returns output in a map : (month airline, mean)
This method calculates mean for a airline for a month Returns output in a map : ( month airline mean )
public static Double calculateMean(List<Double> priceList){
		Double totalPrice = 0.0;
		for (Double price : priceList) {
			totalPrice += price;
		}
		Double avgPrice = totalPrice / priceList.size();
		return avgPrice;
	}
public static Double calculateMean ( List < Double > priceList ) { Double totalPrice = 0.0 ; for ( Double price : priceList ) { totalPrice += price ; } Double avgPrice = totalPrice / priceList . size ( ) ; return avgPrice ; }
This method calculates mean for a airline for a month
 Returns output in a map : (month airline, mean)
This method calculates mean for a airline for a month Returns output in a map : ( month airline mean )