I searched for a complete table of the lexicographic ordering used in Java, with no avail.
I find collating pattern. But what I need is a ordering that includes letter in upper and lower cases, numbers, operators, space.
I know space is the first in that ordering, what about the rest?
Done of my first question, my 2nd question is:
What exactly does the number returned by compareTo method tells you?
For ex. How many letters apart are two letter of the same index of two different words?
Aucun commentaire:
Enregistrer un commentaire