Create average.java