Monday, February 2, 2015

2. Hello Name

2. Write a program in java to print "Hello Name" where Name will be passed as command line argument at run time.
Solution

1 comment:

  1. public class shubhs{
    public static void main(String args[]){

    System.out.println(args[0]);

    }
    }

    /*
    javac shubhs.java
    java shubhs SHUBHAM
    */

    ReplyDelete