Here you can find the source of uuid()
public static String uuid()
//package com.java2s; //License from project: Open Source License import java.util.*; public class Main { public static String uuid() { return UUID.randomUUID().toString().replace("-", ""); }/*ww w . java 2 s .co m*/ }