為什么我重寫equals方法時(shí)有問題?
為什么我重寫equals方法時(shí)有問題?點(diǎn)擊source選項(xiàng)中的generate hasCode() and equals...時(shí)彈出:
There are no non-static fiels in this class,..的警告框。
為什么我重寫equals方法時(shí)有問題?點(diǎn)擊source選項(xiàng)中的generate hasCode() and equals...時(shí)彈出:
There are no non-static fiels in this class,..的警告框。
2015-04-08
舉報(bào)
2016-02-28
懂了,原來要在子類里面寫方法,我之前是在主方法中建立該方法,所以錯(cuò)誤了!
2016-02-28
你好,我也出現(xiàn)了同樣的問題,請(qǐng)問該怎么解決這個(gè)問題,謝謝
2015-04-08
弄明白了