Using java.util.UUID : UUID GUID « Development Class « Java






Using java.util.UUID

     

import java.util.UUID;

public class Main {
  public static void main(String arg[]) {
    System.out.println(UUID.randomUUID());
  }
}
//138a4222-e898-484f-8347-dafc01c5b03b

   
    
    
    
    
  








Related examples in the same category

1.Random GUID
2.Algorithm for generating Random GUID
3.Get a unique identifier Using java.rmi.dgc.VMID
4.Create your own basic UUID
5.Session ID generator
6.UUID generator from Sun Microsystems
7.UUID generator from http://www1.ics.uci.edu
8.Using java.util.concurrent.AtomicLong: A numerical id, start at zero and increment by one.
9.A 32 byte GUID generator
10.A unique identifier
11.Generate pseudo-GUID sequences
12.Generates a UUID
13.Generates random UUIDs
14.Generator for Globally unique Strings
15.ID generator
16.Simple Id Generator
17.UUID generation
18.UUID generator of 32 bytes long values
19.Simple Long Id Generator
20.Long Sequence Generator
21.UUID generator
22.Thread-safe version of the Axiom UUIDGenerator
23.Convert an array of bytes into a List of Strings using UTF-8.
24.Your own UUID
25.Your own UUID 2
26.Create GUIDs according to the principles at http://www.opengroup.org/dce/info/draft-leach-uuids-guids-01.txt.
27.Get Unique Id