上面有代码java
Object[] param = {1,2,3,4};
Array array = connection.createArrayOf("integer", param);
CallableStatement proc = connection.prepareCall("{ call net_trains(?, ?) }");
proc.setArray(1, array);
proc.setInt(2, Ids.get(k))
proc.execute();
与其直接初始化 Object 数组,不如有机会用任意数量的元素填充它
ArrayList<String> ProcessedTherms = new ArrayList<String>();
怎么做?