[問題] 有關於final boolean enabl多個final?
http://brianchen85.blogspot.tw/2015/04/android-bluetooth-low-energyble.html
詳細請各位大大參考這篇!
我有去爬過文,
知道final的用法,
可是這篇裡面的boolean enable要加上final?
java菜鳥,請不要鞭太大力!
找到答案了~
If parameter is final its value cannot be changed,
any attempt to do so will cause compilation error.
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 1.161.11.105
※ 文章網址: https://www.ptt.cc/bbs/java/M.1449482033.A.C26.html
→
12/07 17:59, , 1F
12/07 17:59, 1F
→
12/07 22:51, , 2F
12/07 22:51, 2F
※ 編輯: freedom74569 (1.161.11.105), 12/08/2015 10:55:42
※ 編輯: freedom74569 (1.161.11.105), 12/08/2015 11:06:25
※ 編輯: freedom74569 (1.161.11.105), 12/08/2015 11:07:10
java 近期熱門文章
PTT數位生活區 即時熱門文章