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
• [14 hours] Java full course for beginners ...
Playlist of my Java examples
• Java projects for beginners | Java project...
In questa pagina del sito puoi guardare il video online Comparable interface - Basic Java Fast (32) della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Begin Coding Fast 05 settembre 2019, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 1,040 volte e gli è piaciuto 11 spettatori. Buona visione!