Here you can find the source of createArrTypSql(String[] arr)
public static int[] createArrTypSql(String[] arr)
//package com.java2s; import java.sql.Types; public class Main { public static int[] createArrTypSql(String[] arr) { int[] types = new int[arr.length]; for (int i = 0; i < arr.length; i++) { types[i] = Types.VARCHAR; }//www . j a va 2s.c om types[arr.length - 1] = Types.CHAR; return types; } }