Posts by Lucas • 1 point
1 post
-
-2
votes0
answers20
viewsQ: Check if an Arraylist has an item with the same name
I need to check if an arraylist has such a name, and if that name already exists in the arraylist, do not let the user continue and register. I have the Products class: public class Produto {…