Ciao a tutti ho un dubbio sul metodo compareTo();
Sulla documentazione Java riporta scritto questo:
Ora il mio dubbio è :codice:Returns: the value 0 if the argument string is equal to this string; a value less than 0 if this string is lexicographically less than the string argument; and a value greater than 0 if this string is lexicographically greater than the string argument.
su questa istruzione:
qual'è l'argomento e qual'è l'oggetto??codice:uno.compareTo(due);

Rispondi quotando