decrementing for loop in java