Java Program to Print strings passed from command line argument…

This java code will print strings passed from command line argument. For example if you have entered ‘Hello!’ then it will print ‘Hello!’.
class StrCmdPrnt
{
                public static void main(String args[])
                {
                                for(int i=0;i
                                {
                                System.out.println(args[i]);
                                }
                }
}

Add Comment