• Post Reply Bookmark Topic Watch Topic
  • New Topic

sorting an array of hex (Java OCA 8 Programmer I Study Guide, Sybex)

 
Jason Attin
Ranch Hand
Posts: 232
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anybody have a suggestion as to how to sort an array of hex?
On page 160 there is a question about sorting an array (I had no idea that you could be asked to sort an hex array, but hey...)
the hex number in the array are: 30,8,3a,ff and the answer apparently is 30,3a, 8, ff
How am I supposed to know that please? Any trick?
thanks
 
Roel De Nijs
Sheriff
Posts: 10763
148
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jason Attin wrote:How am I supposed to know that please? Any trick?

This topic is about the same question, so you might find a few pointers to solve it.

Hope it helps!
Kind regards,
Roel
 
Jason Attin
Ranch Hand
Posts: 232
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes, very useful, thanks!
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!