java check if args is empty

Java
if (args.length == 0)
  //check
}//if (no argument passed as input)
Source

Also in Java: