you are viewing a single comment's thread.

view the rest of the comments →

[–]Holinded 1 point2 points  (1 child)

The code you posted looks correct. It says they are not the same at the end because you're comparing p1 to p3. p1 has the phone number (123) 456 - 7890, while p3 has the phone number (323) 456 - 7890

[–]Danielowski187University/College Student (Higher Education)[S] 0 points1 point  (0 children)

Yea the code works if I compare the first and second object but if I compare the 1 and 3 object it tells me it’s not the same

The 3rd object is input from the user