看板 java 關於我們 聯絡資訊
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
ssccg: 以此例沒必要加final,應該只是作者習慣把所有參數設final 12/07 17:59
freedom74569: 謝謝您~ 12/07 22:51
※ 編輯: 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