Answers for "check values from var args in java"

0

java how to know if there is something on arguments

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 
      }
    }
}
Posted by: Guest on May-16-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language