OpenText interview question

How would you increment a variable in Java?