How come the first call to someMethod doesn\'t compile without being explicit that it\'s String[]?
It\'s fine to use an array initializer to create a String[] arra
If you don't want to use explicit String[], use:
String[]
public void someMethod(String... arr){ //do some magic } … someMethod("cm", "applicant", "lead");
The three periods after the final parameter's type indicate that the final argument may be passed as an array or as a sequence of arguments.
Read more.