Add the java version of the Open-Closed Principle exercise.