Win a copy of Event Streams in Action this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

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

 
Ranch Hand
Posts: 234
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
 
Sheriff
Posts: 11604
178
Hibernate jQuery Eclipse IDE Spring MySQL Database AngularJS Tomcat Server Chrome Java
  • 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: 234
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes, very useful, thanks!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!