3 ms·Everyone using Java knows that you need to use .equals() for comparing Objects, not ==.by peterashford 10y agoEveryone using Java knows that you need to use .equals() for comparing Objects, not ==.