vendredi 20 février 2015

What does it mean when a compareTo method returns 8136?



So my code in qeustion is:



int result = stringArray.get(4).compareTo("The");
System.out.println(result);


and it prints out: 8136


I am confused because from what I can tell, compareTo() returns 0, 10, or -10. Any help?




Aucun commentaire:

Enregistrer un commentaire