Passing a string array as a parameter to a function java
===

I would like to pass a string array as a parameter to a function. Please look at the code below 


    String[] stringArray = {a,b,c,d,e,f,g,h,t,k,k,k,l,k};
    function(stringArray);

    instead of 
    function(a,b,c,d,e,f,g,h,t,k,k,k,l,k);

But if I do this I am getting an error stating that convert String[] into String. I would like to know, is it possible to pass the values like this or what is the correct way to do this. Thank you.