Please enable JavaScript to use CodeHS

CodeHS Glossary


int compareTo(String other) Java

Returns a value < 0 if this is less than other; returns zero if this is equal to other; returns a value > 0 if this is greater than other