public class UUIDGenerator {
private UUIDGenerator() {
}
public static String getUUID() {
return UUID.randomUUID().toString();
}
public static String get32UUID(){
return getUUID().replace("-", "").toUpperCase();
}
public static void main(String[] args) {
System.out.println(UUIDGenerator.getUUID());
System.out.println(UUIDGenerator.get32UUID());
}