The getAverage method is declared to return a double primitive not an object, so you cannot return null. A few other alternatives would be to throw an exception (perhaps an IllegalStateException),...