wood burning stoves*
The moose likes Java in General and the fly likes Two questions about how to obtain a UUID Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Two questions about how to obtain a UUID" Watch "Two questions about how to obtain a UUID" New topic
Author

Two questions about how to obtain a UUID

Julien Martin
Ranch Hand

Joined: Apr 24, 2004
Posts: 384
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

Joined: Apr 24, 2004
Posts: 384
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Two questions about how to obtain a UUID