Given a list of integers, find out all the numbers starting with 1 using Stream functions?

This program finds all numbers starting with 1 in a list of integers using Stream functions.

Code Example:

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

public class NumberStartingWithOne {

    public static void main(String args[]) {

        List<Integer> myList = Arrays.asList(10, 15, 8, 49, 25, 98, 32);

        myList.stream()
                .map(s -> s + "")
                .filter(s -> s.startsWith("1"))
                .forEach(System.out::println);
    }
}

Output:

10 15