java - What is meant by lexicographical byte -


i tried searching word unable proper answer...
lexicographical means sorting alphabetically or if 2 or more parameters share same name, sorted value.

thanks help!!!!.....

lexicographical order stands way order data (sort) - in dictionary (alphabetically).

that is, in java, if want sort strings order them using a.compareto(b) < 0. if have string[n] strings lexicographically sorted if following holds:

  • strings[0].compareto(strings[1]) < 0
  • strings[1].compareto(strings[2]) < 0
  • ...
  • strings[n-2].compareto(strings[n-1]) < 0

read more on wikipedia


Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -