标签:array length class stat -- str dom 顺序 print
class ArrayDome
{
public static void main(String[] args)
{
int[] arr = {12,51,12,11};
//顺序遍历
for(int x = 0; x < arr.length; x++)
{
System.out.println(arr[x]);
}
//反向遍历
for(int x = arr.length-1; x >= 0; x--)
{
System.out.println(arr[x]);
}
}
}
标签:array length class stat -- str dom 顺序 print
原文地址:https://www.cnblogs.com/150643com/p/10357217.html