Problem : Write a program that takes a name from command line and say Hello to it?
Program :Step 1 - CodingCreate a text file c:\sunilos\HelloName.java and copy below contents./* *A program which take command line argument and print on command prompt. */ public class HelloName { public static void main(String[] args) { System.out.println("Hello " + args[0]); } } Step 2 - Deployment
Step 3 - Testing
OutputIt will display.Hello SunilOS <<Previous | Next>> |