- 博客(1)
- 收藏
- 关注
原创 while循环和for循环之间的转化,关键点是自增数放置的位置
首先以一个数组反转程序为例,该程序对一个数组进行了两次反转,分别使用了while循环和for循环:public class ArrayReversTest { public static void main(String[] args) { //数组元素反转 int[] num = new int[] {12, 14, 456, 67, 45, 567}; int min = 0; int max = nu...
2020-07-18 12:32:57
442
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅