In my main method I have the command below:
if (args.length == 0) // if no command line argument is given
args.addAll(Arrays.asList("Hello","world"); // error
And there's an error says:
Cannot invoke addAll() on the array type String[]
How do I add multiple elements to args?
args.addAll(