Java数组声明

1、int [] nums1 = new int[5];

2、int nums2[] = {1,2,3,4,5};

3、int [] nums3 = new int[]{1,2,3,4,5};

posted @ 2018-07-29 14:53  JccVirtual  阅读(149)  评论(0编辑  收藏  举报