class Array
{
public static void main(String[] args)
{
/* int[] arr = new int[3];
int arr[] = new int[3];
int[] arr = new int[]{2,2,6,43};
int[] arr = {2,2,3,4,4,5};
System.out.println("Hello World!");
*/
int[] arr = new int[3];
arr[0] = 60;
arr[1] = 90;
arr[2] = 50;
// arr = null;
System.out.println(arr[2]);
}
}
打印的结果为什么还是0? |