This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Two questions about how to obtain a UUID  RSS feed

 
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
Boost this thread!