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

前端 未结 6 836
无人共我
无人共我 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:13

    1. Form the menu bar, select Run -> Run Configurations....
    2. Select Arguments tab.
    3. Add -ea to VM arguments.
    4. Click Apply.
    5. Click Run.

提交回复
热议问题