1、首先在菜单栏点击run,然后点击Run Configurations
2、进入后看到操作页面如下
3、点击Arguments页签
4、 VM arguments文本框中加上断言开启的标志:-enableassertions 或者-ea 就可以了
运行你的断言代码就可以看到效果了
1、首先在菜单栏点击run,然后点击Run Configurations
2、进入后看到操作页面如下
3、点击Arguments页签
4、 VM arguments文本框中加上断言开启的标志:-enableassertions 或者-ea 就可以了
运行你的断言代码就可以看到效果了
相关文章: