The video discusses the compareTo method from the Comparable interface. Two String objects can be compared in lexicographic order using the compareTo method. For user-defined classes, one can define the compareTo method by comparing the instance variables of two objects.
You’ll learn most by trying my code while watching the video.
1:45 - compareTo method of strings
7:58 - Defining your own compareTo method
Playlist of my Java course
https://www.youtube.com/playlist?list=PLtQo0sxRN7JLr647f8RTzS58u8Rv5jxT5
Playlist of my Java examples
https://www.youtube.com/playlist?list=PLtQo0sxRN7JKKla3_GAF05dySjyy3nINa