I am fresher and I have to write below code
I Have 2 list's called accounts and accountTotalAmount, I want to iterate through these lists at the same time
Class FormDetails
{
private List<String> accounts;
private List<String> accountTotalAmount;
//getter & setter;
//toString();
}
final CallableStatement call = connection.prepareCall("{ ? = call "+Schema+"table_name(?) }");
for(final String account : formData.getAccounts())
{
call.setString(1, account);
call.execute();
}
I have to get and set accounttotalamount into 2 column for callableStatement using same advance for loop
Thanks in advance !!