Create averageLength.java