數(shù)組初始化
在聲明數(shù)組的同時(shí)賦值為什么不能指定數(shù)組長(zhǎng)度
如: int[] score = new int[]{90,12,34,77};
為什么不能是int[] score = new int[4]{90,12,34,77};
在聲明數(shù)組的同時(shí)賦值為什么不能指定數(shù)組長(zhǎng)度
如: int[] score = new int[]{90,12,34,77};
為什么不能是int[] score = new int[4]{90,12,34,77};
2016-08-06
舉報(bào)
2022-03-28
可以這么寫(xiě)的
aipjbrapadfdbilqoyqcmwtsu
2016-08-06
規(guī)定,因?yàn)槟愫竺鎨}中已經(jīng)給出了元素個(gè)數(shù)了呀