Introduce increment implemented in java