The document shows an example of converting an external iteration over a list using a for loop into an internal iteration using Java streams. First, a for loop is used to iterate over a list of numbers and add each number multiplied by 2 to a new list. Then, this is rewritten using streams to map each number by multiplying it by 2 and collecting the results into a new list, eliminating the need for an anonymous class.