I'm learning Java and I'm doing some project for university. I have a problem that I don't know how to solve it. I have a static ArrayList in some class that have an object with some properties. The user needs to insert some information that I need to compare if exists in that Object.property. I tried the compare method but I can't compare that 2 things. Can someone help me? Thanks in advance. Sorry about my english, it's not my native language.