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]);
		}
	}
}

 

相关文章:

  • 2022-12-23
  • 2021-09-01
  • 2022-12-23
  • 2022-01-08
  • 2022-12-23
  • 2021-12-16
  • 2021-09-27
  • 2022-01-07
猜你喜欢
  • 2021-11-23
  • 2022-01-08
  • 2021-12-05
  • 2021-10-25
  • 2021-12-05
  • 2022-12-23
相关资源
相似解决方案