看板 [ java ]
討論串[問題] {{ ..... }} 是什麼 syntax?
共 3 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓3(3推 0噓 2→)留言5則,0人參與, 最新作者qrtt1 (愚人)時間18年前 (2008/01/31 11:31), 編輯資訊
0
0
0
內容預覽:
我覺得比較像 annonymous inherit class (<-- 不知有沒有專用名詞). 再一個 initialize in inner class. --. 發信站: 批踢踢實業坊(ptt.cc). ◆ From: 220.128.219.202.

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者adrianshum (Alien)時間18年前 (2008/01/31 11:29), 編輯資訊
0
0
0
內容預覽:
自問自答. 突然想通了 XDDD. 原來是 annonymous class + initializer. Alien. --. 發信站: 批踢踢實業坊(ptt.cc). ◆ From: 202.155.236.82.

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者adrianshum (Alien)時間18年前 (2008/01/31 11:16), 編輯資訊
0
0
0
內容預覽:
剛才看 code 的時候看到有這樣的 syntax. trades = new ArrayList() {{. add(new Trade( 0 ));. add(new Trade( 1 ));. add(new Trade( 2 ));. add(new Trade( 3 ));. add(ne
首頁
上一頁
1
下一頁
尾頁