Now, use Objects::nonnull for non-null values: List<String> list = stream.filter(Objects::nonNull).collect(Collectors.toList());.
確定! 回上一頁