What is an example of an infinite loop in Java using a `while` loop?
An example of an infinite loop is: `while(x == 10) { //code }` if `x` never changes.
You're almost there! This could become an infinite loop, but it depends on how `x` is updated inside the loop.
Can you explain how to make sure the loop eventually terminates by modifying the value of `x`?