/*
数组的定义
元素类型 [] 数组名称=new 元素类型[数组长度或元素]
*/
class ArrDY
{
public static void main(String[] args)
{
int [] Arr1=new int[4];
Arr1=null;
System.out.println(Arr1);
}
}
本文通过一个简单的Java程序示例介绍了如何定义和初始化数组,并展示了数组赋空值后的输出结果。
/*
数组的定义
元素类型 [] 数组名称=new 元素类型[数组长度或元素]
*/
class ArrDY
{
public static void main(String[] args)
{
int [] Arr1=new int[4];
Arr1=null;
System.out.println(Arr1);
}
}
2097
1556
3254

被折叠的 条评论
为什么被折叠?