1. 程式人生 > >錯誤:The import java.util.Objects cannot be resolved

錯誤:The import java.util.Objects cannot be resolved

原因:JDK1.7.0才有Objects類

解決辦法:在MyEclipse中右擊專案,選中Build Path---->Configure Build Path——>Libraries——>點選右邊Add Librayr——>JRE System Library(next)——>點選Environment;