i'm trying to create a method that adds an element in an existing string array. Kind of like the arraylist "add()" method.
so far, i have this

String[] addToArray(String[] strArray1, String s)
{
return strArray1+s;

}



but this doesnt work...
why?