Often it simply requires the use of a single test.
Say, for instance, that you have a method with a single "while loop" that continues based on the value of a Boolean value. Then simply add an "If" that does whatever needs to be done until another condition is satisfied, and uses the "else" to set the Boolean variable to false.
While loop terminated