• 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
  • Liutauras Vilda
  • Bear Bibeault
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Frits Walraven
Bartenders:
  • Carey Brown
  • salvin francis
  • Claude Moore

How to convert Hex into UpperCase Alphabets?  RSS feed

 
Ranch Hand
Posts: 222
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All,

I created a sample key generator which generates UUIDs (with lots of hex for the output like this):



The main app:



The output:



I need to figure out a way to take out the hex from this String and make it look a lot better.

Figured that I could probably do it inside a separate wrapper class (perhaps a Filter) which contains an arbitrary map for the hex letters (A=G,B=M,C=X,D=U, etc.).

That way, the key (or a substring of the key) would turn into: 4HD5-K8X3-42TL.

Would appreciate it if someone could help me with the separate wrapper class which contains the map converter...

-James
[ May 02, 2008: Message edited by: James Dekker ]
 
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any reason why you don't just call the toUpperCase() method of String?
 
The harder you work, the luckier you get. This tiny ad brings luck - just not good luck or bad luck.
Create Edit Print & Convert PDF Using Free API with Java
https://coderanch.com/wiki/703735/Create-Convert-PDF-Free-Spire
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!