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