|
We will build up the HelloWorld application for example of using command line parameter. In the main method we check if the value of the -language input parameter is french,the greeting will be Bonjour Java. Otherwise,the greet will be Hello Java.
Create the HelloWorld2 class as following:

Pass the input parameters to get the Bonjour Java greet

Otherwise to get the Hello World greeting - in English

|