![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
代码分享
幻尘砂
星河滚烫,你是人间理想。。。
展开
-
稀疏数组及其还原之五子棋
package text.Arrys; public class Demo05 { public static void main(String[] args) { //1.创建一个二维数组 11*11 0:没有棋子, 1:黑棋 2:白棋 int[][] array1 = new int[11][11]; array1[1][2] = 1; array1[2][3] = 2; //输出原始数组原创 2021-01-21 12:43:22 · 70 阅读 · 0 评论 -
反转打印数组元素
反转打印数组元素 public class Demo03 { public static void main(String[] args) { int[] arrays = {1, 2, 3, 4, 5, 6}; int[] reverse = reverse(arrays); printArray(reverse); } //反转数组 public static int[] reverse(int[] arrays) {原创 2021-01-19 23:52:18 · 157 阅读 · 0 评论