compareTo() definition mistake?
https://www.tutorialspoint.com/java/lang/string_compareto.htm
Example code of compareTo does not allign with the definition. Or am I wrong?
import java.lang.*;
public class StringDemo {
public static void main(String[] args) {
String str1 = "tutorials", str2 = "point";
// comparing str1 and str2
int retval = str1.compareTo(str2);
// prints the return value of the comparison
if (retval