Here you can find the source of createIntegerQueryString(List values)
public static String createIntegerQueryString(List values)
//package com.java2s; import java.util.List; public class Main { public static String createIntegerQueryString(List values) { String queryString = "("; if (values == null || values.size() < 1) { return null; }/* w ww .j a v a 2 s . c o m*/ queryString += values.get(0); for (int i = 1; i < values.size(); i++) { queryString += ", " + values.get(i); } return queryString + ")"; } }