Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import java.util.UUID;

public class Main {
    /**
     * Generates 32 char long UUID without "-" char, in regex pattern "[0-9a-f]".
     *
     * @return
     */
    public static String generateUid() {
        return UUID.randomUUID().toString().replaceAll("-", "");
    }
}