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:


 "Hello


Pass the input parameters to get the Bonjour Java greet


 "Pass


Otherwise to get the Hello World greeting - in English


 "Otherwise

                    

Copyright © 2012 VisualBuilder. All rights reserved