java的一些基本问题

2025-05-21 04:41:30
推荐回答(2个)
回答(1):

新生成一个list1,依次取出list0的每个元素,将list最后一个元素加到list1中。

回答(2):

遍历到 n/2
temp = a1;
a1 = an;
an = tmep;