import java.util.*;
import java.util.stream.Collectors;

public class StreamExample2 {
    public static void main(String[] args) {
        List<String> words = Arrays.asList("Java", "Stream", "Library");
        System.out.println("입력 데이터 = " + words);

        List<Integer> result = words.stream()
            .map(String::length)
            .collect(Collectors.toList());

        System.out.println("실행 결과 = " + result);
    }
}
