Java: Combining Postfix and Prefix Operators (a = a++ + ++a;)

Going over a lesson with my students about postfix operators vs prefix operators in Java, my students had a question about what happens when an expression has both postfix and prefix operators. In Java, usually you would see one use ++ in a for loop. Usually the counter variable usually increases. Assuming the counter variable…