// "Adapt using 'asIterator()'" "true-preview"
import java.util.*;
import java.util.stream.*;

class Test {
  void testIterator(Enumeration<String> en) {
    Iterator<String> iterator = <caret>en;
  }
}