Problem : Write a program that takes more than one command line argument ?
Program :Step 1 - CodingCreate a text file c:\sunilos\HelloAll.java and copy below contents./* * A program which take any no. of command line argument. */ public class HelloAll { public static void main(String[] args) { for (int i = 0; i < args.length; i++) { System.out.println(i + " = Hello " + args[i]); } } } Step 2 - Deployment
Step 3 - Testing
OutputIt will Display 0 = Hello Sunil 1 = Hello OS <<Previous | Next>> |