java创建数组几种方式

最近得多学学基础了,基础还是很重要的~

int[] temp=new int[6];

int[] temp={1,2,3,4};

int[] temp= new int[]{1,2,3,4,5};   //和第二种差不多

持续更新~

猜你喜欢

转载自blog.csdn.net/qq_37570296/article/details/81382391