splitAndAverage.java