Printing Command Line arguments in JRuby
In this section of JRuby tutorial we will discuss about printing command line arguments in JRuby program. We can also take arguments from the command line into our JRuby program.
This example will illustrate you how to take command line arguments in JRuby program. We have to used ARGV array object to take command line arguments. Here is the example code of CommandLine.rb as follows: