New complete course: https://www.udemy.com/course/java-11-complete-beginners/
More courses! Free C++ course: https://www.udemy.com/course/free-learn-c-tutorial-beginners/?referralCode=66F2A2A36BD6D304C9D9
/>Make a social network with Spring Boot: https://www.udemy.com/course/java-spring-social-network/?referralCode=4C26D3598A4B1A5746FB
/>Learn about MySQL and relational databases: https://www.udemy.com/course/mysql-and-sql-from-beginner-to-advanced/?referralCode=5761BF2ABAD4E79E3E78
/>Java desktop programming: https://www.udemy.com/course/java-swing-complete/?referralCode=D0F4D66AE3725509DED4
/>Intermediate-Advanced C++ 11: https://www.udemy.com/course/learn-advanced-c-programming/?referralCode=FD10A334798EDB9ED1AC
/>——————————————————————————————————————————————-
A tutorial on the important .equals() method in Java, used for comparing the meaning of two objects, and vital when comparing Strings.
——————————————————————————————————————————————–
More videos on my YouTube channel: https://www.youtube.com/user/caveofprogramming
samyakchyEnlightened
Learn Java Tutorial for Beginners, Part 42: Equals Merolearning.com
Share
I suppose you talk about it in the collections videos I will be starting this weekend, but compare is important for strings too, i.e. you can't think that < or > or <= or >= will work on strings any more than == or != would. I'm sure you talk about it when you talk about how to sort collections.
I don't understand why do we need to String method here? I had some error and decided to drop it and it still worked perfectly well..
Great tutorial btw , you re a master 😀
Whenever I watch your tutorials, I think of Gabe
with Double it shows "false" with double it shows "true"
talking about 8:17
Interestingly, if you use the primitive double, rather than the Double class, == will come out as true. I use "interestingly" in the loosest possible sense here, of course.