How to enable the Java keyword assert in Eclipse program-wise?

前端 未结 6 849
无人共我
无人共我 2020-11-27 05:44

How can I enable the assert keyword in Eclipse?

public class A
{
    public static void main(String ... args)
    {
        System.out.println(1         


        
6条回答
  •  半阙折子戏
    2020-11-27 06:17

    In case someone uses IDEA, -ea is enabled by default in some IDEA versions, but disabled in others. To manually configure it, it is under run -> edit configuration -> vm option

提交回复
热议问题