Yes it will give compilation error.
To be precise a Class Cast Exception.
getParameter() api returns
String and you are trying to cast with ArrayList.
Regarding to the question, one cannot pass the Array object as part of input as it will take only Strings