QA@IT
«回答へ戻る

28
 以下にかえたらどうですか?
 ```
 CartListForm cartListForm = (CartListForm)form;
-int i = (CartListExt)cartListForm.getCartList().get(CartListExt.getItemVolume());
-int j = (CartListExt)cartListForm.getCartList().get(CartListExt.getCartDitailSubNo());
+int i = (CartListExt)cartListForm.getCartList().get(CartListExt.getItemVolume()-1);
+int j = (CartListExt)cartListForm.getCartList().get(CartListExt.getCartDitailSubNo()-1);
 ```
CartListForm cartListForm = (CartListForm)form;
CartListExt cartRecord = (CartListExt)cartListForm.getCartList().get(0);
int i = cartRecord.getItemVolume();
int j = cartRecord.getCartDitailSubNo();

get(0)では最初のカートの値をみにいくのでは・・・
以下にかえたらどうですか?

CartListForm cartListForm = (CartListForm)form;
int i = (CartListExt)cartListForm.getCartList().get(CartListExt.getItemVolume()-1);
int j = (CartListExt)cartListForm.getCartList().get(CartListExt.getCartDitailSubNo()-1);
```
CartListForm cartListForm = (CartListForm)form;
CartListExt cartRecord = (CartListExt)cartListForm.getCartList().get(0);
int i = cartRecord.getItemVolume();
int j = cartRecord.getCartDitailSubNo();
```
get(0)では最初のカートの値をみにいくのでは・・・
以下にかえたらどうですか?
```
CartListForm cartListForm = (CartListForm)form;
int i = (CartListExt)cartListForm.getCartList().get(CartListExt.getItemVolume()-1);
int j = (CartListExt)cartListForm.getCartList().get(CartListExt.getCartDitailSubNo()-1);
```

28
-
+```
 CartListForm cartListForm = (CartListForm)form;
 CartListExt cartRecord = (CartListExt)cartListForm.getCartList().get(0);
 int i = cartRecord.getItemVolume();
 int j = cartRecord.getCartDitailSubNo();
+```
+get(0)では最初のカートの値をみにいくのでは・・・
+以下にかえたらどうですか?
+```
+CartListForm cartListForm = (CartListForm)form;
+int i = (CartListExt)cartListForm.getCartList().get(CartListExt.getItemVolume());
+int j = (CartListExt)cartListForm.getCartList().get(CartListExt.getCartDitailSubNo());
+```
CartListForm cartListForm = (CartListForm)form;
CartListExt cartRecord = (CartListExt)cartListForm.getCartList().get(0);
int i = cartRecord.getItemVolume();
int j = cartRecord.getCartDitailSubNo();

get(0)では最初のカートの値をみにいくのでは・・・
以下にかえたらどうですか?

CartListForm cartListForm = (CartListForm)form;
int i = (CartListExt)cartListForm.getCartList().get(CartListExt.getItemVolume());
int j = (CartListExt)cartListForm.getCartList().get(CartListExt.getCartDitailSubNo());
```
CartListForm cartListForm = (CartListForm)form;
CartListExt cartRecord = (CartListExt)cartListForm.getCartList().get(0);
int i = cartRecord.getItemVolume();
int j = cartRecord.getCartDitailSubNo();
```
get(0)では最初のカートの値をみにいくのでは・・・
以下にかえたらどうですか?
```
CartListForm cartListForm = (CartListForm)form;
int i = (CartListExt)cartListForm.getCartList().get(CartListExt.getItemVolume());
int j = (CartListExt)cartListForm.getCartList().get(CartListExt.getCartDitailSubNo());
```

回答を投稿

CartListForm cartListForm = (CartListForm)form;
CartListExt cartRecord = (CartListExt)cartListForm.getCartList().get(0);
int i = cartRecord.getItemVolume();
int j = cartRecord.getCartDitailSubNo();

CartListForm cartListForm = (CartListForm)form;
CartListExt cartRecord = (CartListExt)cartListForm.getCartList().get(0);
int i = cartRecord.getItemVolume();
int j = cartRecord.getCartDitailSubNo();