public class Test {
public static void main(String[] args) throws IOException {          //想要在此跳開程序              String a ="abc";
          System.out.println(a);
        }
}
請問要下什麼指令呢??

解决方案 »

  1.   

    if(true) return 就行了其中的条件,你可以自己写
      

  2.   

    public static void main(String[] args) throws IOException {          String k=args[0];
              if(k.equals("wang"){           }else{
               {            }  
              String a ="abc";
              System.out.println(a);
            }这样时,红色为运行java 类名 值的格式赋予的!
      

  3.   

    以Delphi 的語法是用 exit;
    若是VB的語法是 exit sub請問題java要怎麼exit void function 呢
      

  4.   

    System.exit(0);  正常退出
    System.exit(-1);  非正常退出
    return