Java.数组

来源:互联网 发布:北京新华电脑软件学校 编辑:程序博客网 时间:2024/05/17 03:17

数组定义的三种方法:

int x[]=new int[5];

int x[]=new int[]{2,34,5,78,9};

int x[]={2,34,5,78,9};