if (rs != null) {
while (rs.next()) {
rb = new ResponseBean();
rb.setQuestionOrderNo(rs.getInt(1));
rb.setResponseLabel(rs.getString(2));
rb.setTaskName(rs.getString(3));
rb.setResponder(rs.getString(4));
rb.setSequenceId(rs.getInt(5));
checkBoxResponses.add(rb);
}
}
この出力は次のとおりです。rs1=10
rs2=Sam
rs3=Manyu
rs4=manyu
rs5=13621
rs1=10
rs2=Sam
--------------------------
rs3=Manyu
rs4=manyu
rs5=13623
------------------------------------
rs1=10
rs2=Sam US
--------------------------------
rs3=Manyu
rs4=manyu
rs5=13623
-------------------------------------------
rs1=10
rs2=Sam India
rs3=Manyu
rs4=manyu
rs5=13624
r5=13623 の値を r2=Sam, Sam US の値にマップしたい。出力を得るためにこれを進める方法を教えてください
<13621,Sam>
<13623,(Sam, Sam US)>
<13624, Sam India>