我正在查看IntStream的文档,我看到一个toArray方法,但是没办法直接去List当然有一种方法可以转换Stream到List? 最佳答案 IntStream::boxedIntStream::boxed变成IntStream进入Stream,然后您可以collect进入List:theIntStream.boxed().collect(Collectors.toList())boxed方法转换intIntStream的原始值进入Integer的流对象。字"boxing"命名int⬌Integer转换过程。见OracleTu