how to add 1 to a variable in java code example Example: how to increase variable java int i = 0; i ++;