以下是我实施并帮助我轻松解决我的解决方案的方法,没有太多障碍。
//创建数组列表
List accountList = new ArrayList();for(int k=0;k < counter;k++){ accountList.add(k, (String)flowCtx.getValueAt("transitId"+m));}循环并使用索引将对象添加到arraylist中。
//借助索引在运行时检索对象
String a = accountList.get(i));

以下是我实施并帮助我轻松解决我的解决方案的方法,没有太多障碍。
//创建数组列表
List accountList = new ArrayList();for(int k=0;k < counter;k++){ accountList.add(k, (String)flowCtx.getValueAt("transitId"+m));}循环并使用索引将对象添加到arraylist中。
//借助索引在运行时检索对象
String a = accountList.get(i));