Adding the auto implement example for java.