String Function - compareTo() Method | JAVA Programming | ICSE

145 Просмотры
Издатель
The compareTo( ) method is used for comparing two strings lexicographically. If both the strings are equal then it returns 0 else it returns positive or negative value. The result is positive if the first string is lexicographically greater than the second string else the result would be negative.

In this video we understand this string function in more detail and then we learn how to use it in Java programs along with dry run for better understanding.

Here are the links for all the playlists that I have made till now and am currently working on.
1. Numbers
https://www.youtube.com/playlist?list=PLxLXsrm7t9_GoxSCh-ePQz-tCJKqSqin0

2. Mathematical Functions
https://www.youtube.com/playlist?list=PLxLXsrm7t9_Fwb6mwcdELinTaiDrB1sGX

3. Series
https://www.youtube.com/playlist?list=PLxLXsrm7t9_HJXBkJ9bYoZgwiDddUKHho

4. Patterns
https://www.youtube.com/playlist?list=PLxLXsrm7t9_H0NOUa3ujpS1LLHhqs6HVm

5. Syntax
https://www.youtube.com/playlist?list=PLxLXsrm7t9_Ft01IF2f_H8jNpOorUxKOV

6. String and Character Functions
https://www.youtube.com/playlist?list=PLxLXsrm7t9_E0Ls3nF6lkjYVYxR6vCVAs

7. Decision Making
https://www.youtube.com/playlist?list=PLxLXsrm7t9_GQIdyKqaA90NwFXjSnkxg0

8. Doubts
https://www.youtube.com/playlist?list=PLxLXsrm7t9_GhmBn3qDn727UeB6wmooR-

9.Theory
https://www.youtube.com/playlist?list=PLxLXsrm7t9_Ht1DaEdftX_8MB0QqsoCvJ

Here is the link of the previous video which is on ASCII Codes
https://youtu.be/SxAPTPsJD5c


In case you have any doubt feel free to drop a comment, I will try my best to help you and solve your problem.
You can also reach me out on WhatsApp or by email.
Contact
WhatsApp Number: 8881210626
Instagram username: https://instagram.com/knowledgefusion_/
Email: knowledgefusion01@gmail.com

#Programmer #Learner #Coder
Категория
Язык программирования Java
Комментариев нет.