String:  compareTo() (Java)

String: compareTo() (Java)

Author: Nathan Schutz
See More
Introduction to Psychology

Analyze this:
Our Intro to Psych Course is only $329.

Sophia college courses cost up to 80% less than traditional courses*. Start a free trial now.


This video looks at how the compareTo() method is used within the String class of Java. It explains lexicographic ordering and special cases in Java.