Home
Sign Up
Sign In
V2EX
›
问与答
请问 JDK 的集合工具方法有没有快速把 int[] 转 List<Integer> 的❓
Newyorkcity
·
Apr 19, 2020
· 1690 views
This topic created in 2404 days ago, the information mentioned may be changed or developed.
谢谢!
jdk
integer
int
List
3 replies
•
2020-04-19 17:09:41 +08:00
Yuicon
Apr 19, 2020
1
这自己写写也就几分钟吧
sheeta
Apr 19, 2020 via Android
2
Arrays.asList() ?
leighton
Apr 19, 2020
3
3
Arrays.stream
(arr).boxed().collect(Collectors.toList())
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Privacy
·
Solana
·
963 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 31ms ·
UTC 19:35
·
PVG 03:35
·
LAX 11:35
·
JFK 14:35
♥ Do have faith in what you're doing.
❯