i have one String[]
String[]
String[] name = {\"amit\", \"rahul\", \"surya\"};
i want to send name as parameter in sql query inside IN
String newNameList=null; for(int i = name.length;i>=0;i--){ if(newNameList==null){ newNameList = "\'" + name[name.length - i] + "\'"; } else{ newNameList += ",\'" + name[name.length - i] + "\'"; } }