class Demo1
{
    public static void main(String[] args) {
        //数组,可以存储多个数据,是一种数据类型,属于引用数据类型
        //定义一个可以存储5个数的数组
        //为了使用数组,需要给数组起个名字
        //int a;
        int [] arr = new int[5];
        arr[0] = 66;
        System.out.println(arr[0]);
    }
}

  

相关文章:

  • 2022-01-03
  • 2021-09-06
  • 2021-10-21
  • 2022-12-23
  • 2021-10-23
  • 2021-06-11
  • 2021-04-09
  • 2021-09-14
猜你喜欢
  • 2021-06-23
  • 2021-12-10
  • 2021-08-26
  • 2022-12-23
  • 2021-07-05
  • 2021-10-24
  • 2021-04-07
相关资源
相似解决方案