❔ Program showing unwanted entries after multiple uses

When I run my code that returns entries from my database, if I run it multiple times it starts to add entries to the top that I don't want in the first place. I can't figure out why this is happening, looking over my code I can I'm guessing it is a problem with my menu class, but I'm not sure.

Screenshot explanation: I ran my showContacts() method 4 times, and it wrote an unwanted entry every time i ran the method

pastebin:
https://paste.mod.gg/wfrhxghnoxws/1
image.png
A tool for sharing your source code with the world!
Was this page helpful?