just give it a constant variable preceding the variable that is used to increase by 1. and do not forget to be out putted like this System.out.println(Constant variable + the increment variable);