Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardJavaLambdas and method refsSingle-choice MCQ

What does this code do?

List<Supplier<Integer>> ss = new ArrayList<>();\nfor (int i = 0; i < 3; i++) { ss.add(() -> i); }