Java tutorial
//package com.java2s; import java.util.UUID; public class Main { /** * Generates a UUID without dash character ("-") * @return */ public static String randomUuidNoDash() { return UUID.randomUUID().toString().replace("-", ""); } }