Learn what is command line arguments in Java with example, how does command-line arguments works, passing arguments via command line arguments
Read this post on scientecheasy.com