Create median.java