Eclipse中如何开启断言(Assert): 1.Run -> Run Configurations -> Arguments页签 -> VM arguments文本框中加上断言开启的标志:-enableassertions 或者-ea 就能够了ip