范例如下图
4 回答

慕粉1613383372
TA贡献2条经验 获得超0个赞
可以将for语句的i<arr.length改为i<arr.length-1,然后在for语句后面输出:system.out.print(arr[arr.length-1]);
添加回答
举报
0/150
提交
取消