Also note that .equals()
normally contains ==
for testing as this is the first thing you would wish to test for if you wanted to test if two objects are equal.
And ==
actually does look at values for primitive types, for objects it checks the reference.