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…

Games That Teach Programming

Over the years, I have stumbled upon some games that help students learn the basics of programming and introduce important programming concepts. Usually, I would use these games a class activity where the students partner up and try to beat the game. Lightbot Lightbot is a simple puzzle game where the objective is to guide…