filmov
tv
Program that print 'No Values' if no arguments exists else print all in single line separated by ','

Показать описание
/** Write a program to check if the program has received command line arguments
* or not.
* If the program has not received command line arguments then print "No Values", else print
* all the
* values in a single line separated by ,(comma).
* Eg1) java Example
* O/P: No values
* Eg2) java Example Mumbai Bangalore
* O/P: Mumbai,Bangalore
* [Note: You can use length property of an array to check its length
*/
* or not.
* If the program has not received command line arguments then print "No Values", else print
* all the
* values in a single line separated by ,(comma).
* Eg1) java Example
* O/P: No values
* Eg2) java Example Mumbai Bangalore
* O/P: Mumbai,Bangalore
* [Note: You can use length property of an array to check its length
*/