reset password
Author Message
nlopez22
Posts: 12
Posted 19:08 Oct 16, 2019 |

There is an error in my toString() method for database that reads "overrides java.util.AbstractCollection<hw5.Person>.toString". I have a toString() for all my classes and I am trying to loop through this to print everything inside of the ArrayList. 

nlopez22
Posts: 12
Posted 19:12 Oct 16, 2019 |

It seems like the loop is what is what is causing the error.

dliang
Posts: 35
Posted 19:26 Oct 16, 2019 |
nlopez22 wrote:

There is an error in my toString() method for database that reads "overrides java.util.AbstractCollection<hw5.Person>.toString". I have a toString() for all my classes and I am trying to loop through this to print everything inside of the ArrayList.

 

Last edited by dliang at 19:30 Oct 16, 2019.
kknaur
Posts: 540
Posted 20:11 Oct 16, 2019 |

I am not sure what the error could be.  If you cannot figure it out you will need to come to office hours tomorrow so we can go over your code.