Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Re: [JAVA]Generating unique identifier with in a sesssion

Ted Husted

2007-03-23

Replies:

* http://java.sun.com/j2se/1.5.0/docs/api/java/util/UUID.html

The simplest thing would be something like

String id = UUID.randomUUID().toString();

-HTH, Ted
<http://www.husted.com/ted/blog/>

On 3/23/07, temp temp <miroconnect@(protected):
>   I need a object which generates unique identifiers for all  instances I create how to do this ?
>  Thanks & Regards

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.