看板 [ java ]
討論串[問題] 煩請高手解答
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓7(7推 0噓 32→)留言39則,0人參與, 最新作者a1632619699 (Crable)時間8年前 (2016/03/23 12:56), 8年前編輯資訊
1
0
0
內容預覽:
大家都知道java的陣列要用new去配置他. EX:. int[] x=new int[5];. or. int[] x;. x=new int[5];. 今天要來請教各位的是不用new配置陣列. 有人可能會想到這個方式. int[] x={0,0,0,0,0};. 但我說的不是這樣是先宣告陣列.
(還有1146個字)

推噓8(8推 0噓 6→)留言14則,0人參與, 最新作者JustinHere (良葛格)時間8年前 (2016/03/24 08:34), 編輯資訊
0
0
1
內容預覽:
沒有 new .... XD. public class Main {. public static void main(String[] args) {. int[] x;. //..... x = array(1, 2, 3, 4);. }. public static int[] array(
(還有30個字)
首頁
上一頁
1
下一頁
尾頁