Lambda expression to convert array/List of String to array/List of Integers

List<Integer> intList = strList.stream()
                               .map(Integer::valueOf)
                               .collect(Collectors.toList());

Leave a Comment