标签:i++ 方式 string 静态 rgba href rgb ati detail
数组遍历方式参考:
方法一:for循环遍历 public static void main(String[] args) { int Arr[][]={{1,2,3},{4,5,6}}; for (int i = 0; i < Arr.length; i++) { for (int j = 0; j < Arr[i].length; j++) { System.out.print(Arr[i][j]+" "); } } } 方法二:foreach遍历 int a[] = {1,2,3,4} ; for (int element:a){ System.out.println(element); } 方法三:Arrays工具类中toString (或deepToString)静态方法遍历 int a[] = {1,2,3,4} ; int b[][] = {{3,4},{1,2}}; System.out.println(Arrays.toString(a)); System.out.println(Arrays.deepToString(b));
参考:https://blog.csdn.net/qq_45696377/article/details/109553685
标签:i++ 方式 string 静态 rgba href rgb ati detail
原文地址:https://www.cnblogs.com/-courage/p/14662485.html