Adding the java file for challenge one