Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何将整数数组转换为 ArrayDeque?例如,不是用循环在 ArrayDeque 中添加数字,我可以将这个整数数组直接转换为 ArrayDeque 吗?提前致谢。
List<Integer> list = Arrays.asList(array); ArrayDeque<Integer> ad = new ArrayDeque<>(list);