reset password
Author Message
dnliban
Posts: 7
Posted 17:54 Sep 29, 2018 |

I'm having a hard time assigning characters ( a,b , c , d) to the specific answers in the arraylist? Should I create a different arraylist containing those characters?

kknaur
Posts: 540
Posted 18:34 Sep 29, 2018 |

Don't overthink this.  You can figure out which character to assign in different ways.  One of which is hinted at in the directions. Remember that char type can be incremented.

AldoGil
Posts: 19
Posted 03:18 Sep 30, 2018 |

I don't understand what sending the boolean into the add answer method does in the method. The method stores the answer as a possible choice in the array of string, but what is supposed to happen to the boolean? what is it supposed to compare and or store to?

kknaur
Posts: 540
Posted 12:18 Sep 30, 2018 |

The boolean tells you if the answer passed into the method is the correct answer or not.  Remember with multiple choice questions, you have 1 correct answer and as many incorrect answers as you want.  The boolean tells you which answer is correct to indicate what letter you are supposed to assign to the answer data field in the parent class.