📜  java如何知道参数上是否有东西 - Java代码示例

📅  最后修改于: 2022-03-11 14:52:06.654000             🧑  作者: Mango

代码示例1
public class Main {
    public static void main(String[] args) {
      if(args.length == 0) {
       //if this runs, there is none cmd arguments 
      } else {
       //and here only if haves cmd arguments 
      }
    }
}