lundi 9 mars 2015

why there is a 0 if we compare two string variables using compareTo in if statement?

why there is a 0 if we compare two string variables using compareTo in if statement? for example

if(name.compareTo(name2)<0)


Aucun commentaire:

Enregistrer un commentaire