I'm trying to add multiple String arrays into a single array using apache commons ArrayUtils as below but it's saying unable to convert Serializable array to String array
// assigning strings arrays
String str1[] = {"hello"};
String str2[] = {"test1"};
String str3[] = {"test2"};
String str4[] = {"hello"};
String str5[] = {"test4"};
String str6[] = {"hello"};
//joining string arrays
String[] allArrays = ArrayUtils.addAll(str1, str2, str3, str4, str5,str6);
addAlldoesn't take variable number of arrays. It takes two arrays.