HashSet<String> outScopeActiveRegionCodeSet=new HashSet<String>();
for (String regionCode : outScopeActiveRegionCodeSet) {
//code required
}
ここでは、以下のようにループに動的に挿入された新しいTransactionLOgDTOオブジェクトを作成する必要があります。ハッシュセットに3つのリージョンコードがある場合、新しいオブジェクトの名前にregionCodeが追加された3つのTransactionLOgDTOオブジェクトが必要です。
TransactionLOgDTO regionCode1DTO=new TransactionLOgDTO();
}
このようなことをする必要があります..........................。
for (String regionCode : outScopeActiveRegionCodeSet) { TransactionLOgDTO "regionCode"+DTO=new TransactionLOgDTO(); }