I was reviewing code this morning and one of my colleagues had a different approach, just pass the parameter using setString("name1','name2','name3")
.
Note: I skipped the single quote at the beginning and end because these are going to be added by the setString
.