Is there a way to count the number of words in a string input at the start of a program and use that number as number of command line arguments in a public static void main (String[] args) program?
The assignment says:
Write a program with which you can consign any number of command line parameters (strings). The consigned parameters should then be output under specification of their position (their number)