Integer對比的問題以及Integer的取值範圍

今天寫完代碼測試的時候遇到一個小bug,寫下來做個記錄 我發現當fTimeYear=2018,lTimeYear也等於2018時,結果竟然是false,然後我去查了integer的源碼 static { // high value may be configured by property int h = 127; String integerCac
相關文章
相關標籤/搜索