I want a string to be given as input to the SQL \"IN\" clause,where in i want a list of strings separated by commas
An unusual solution: If the Strings are in ArrayList or LinkedList (sub class of java.util.AbstractCollection), call toString() which returns "[e1, e2, e3...]". Then you could handle the string.
ArrayList
LinkedList
java.util.AbstractCollection
toString()