Arrays.asList("1", "2", "3")需要导哪个包
时间: 2023-08-14 21:06:20 浏览: 83
Arrays.asList方法总结
5星 · 资源好评率100%
回答: Arrays.asList("1", "2", "3")需要导入java.util包。\[1\]
#### 引用[.reference_title]
- *1* *2* [Arrays.asList()的那些坑](https://blog.csdn.net/qq_45171957/article/details/126714553)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [Java Arrays.asList 和 new ArrayList(Arrays.asList()) 的对比](https://blog.csdn.net/huyuchengus/article/details/119640913)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文