Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Two questions about how to obtain a UUID

 
Julien Martin
Ranch Hand
Posts: 384
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,

I have the following problems and would be grateful for some help:

1. I need to generate a 15-digit UUID in numeric ideally using the UUID class. Is that possible? If not, what class should I use?
2. I also need to be able to generate a 15-character UUID in alphanumeric still using the UUID class. Is that possible?

Thanks in advance,

Julien.
 
Julien Martin
Ranch Hand
Posts: 384
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot for the info Jan,
If you're still available, can you please tell me what do you think of System.currentTimeMillis() as compared to the method/class you advise??
Julien.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic