class ArrayTest
{
public static void main(String[] args)
{
int[] arr;
//对数组初始化
arr = new int[100];
for (int x = 0; x < 100 ;x++ )
{
//对数组的每个元素进行赋值
arr[x] = x;
}
for (int x = 0; x < arr.length-1 ; x++ )
{
//打印每个值
System.out.println(arr[x]);
}
}
}