This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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.
 
wood burning stoves
 
subject: Two questions about how to obtain a UUID
 
Similar Threads
Help needed to generate token
recNo choice
crc32 and VMID for unique names
hashCode for temporarly id ?
Code to generate Unique ID in web application