java數組基本操作 一、數組聲明 兩種形式(方括號位置放變量前后都可以): int arr[ ]; int[ ] arr2; 二、數組初始化 數組初始化也有兩種形式,如下(使用new或不使用new) ...