Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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 
      }
    }
}
 
PREVIOUS NEXT
Tagged: #java #arguments
ADD COMMENT
Topic
Name
3+3 =