Right now I have the following code:
String[] values = {str1, str2};
Utils.myMethod(values);
I would like to know if there is a way to do this all in one line. I've tried:
Utils.myMethod({str1, str2});
But that doesn't work. Thanks in advance.