reset password
Author Message
epascua
Posts: 47
Posted 12:17 Sep 13, 2016 |

Hello!

For Part II question 1, the information we're adding to the array list, is it going to be a string (The information from the tostring())? 

 

Last edited by epascua at 12:35 Sep 13, 2016.
jhurley
Posts: 207
Posted 13:04 Sep 13, 2016 |
epascua wrote:

Hello!

For Part II question 1, the information we're adding to the array list, is it going to be a string (The information from the tostring())? 

 

no, the list should be a lit of MonsterAttacks.  See the code that add departments to a list in the Course/Department/College example

rcamach7
Posts: 31
Posted 18:30 Sep 14, 2016 |

No, you're creating and adding an instance of the MonsterAttack class you created, and adding that to the array list. You're basically creating a new MonsterAttack, with the values it requires, and adding that to the arraylist of MonsterAttacks.

Last edited by rcamach7 at 18:31 Sep 14, 2016.