Java UUID Create generateUUID()

Here you can find the source of generateUUID()

Description

generate UUID

License

Open Source License

Declaration

public static String generateUUID() 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.UUID;
import java.util.Random;

public class Main {
    public static String generateUUID() {
        new UUID(new Random().nextLong(), new Random().nextLong());
        UUID generatedUUID = UUID.randomUUID();
        return generatedUUID.toString();
    }/*  www  .  j ava  2s. c  o  m*/
}

Related

  1. generateUniqueString()
  2. generateUniqueText()
  3. generateUri()
  4. generateURN()
  5. generateUUID()
  6. generateUUID()
  7. generateUUID()
  8. generateUUID()
  9. generateUUID()