UUID uuid = UUID.randomUUID(); String id = uuid.toString().replace("-", ""); System.out.println(id);
Output: b5228fbd6c09469e884521cb1c39e8e7
This class is a member of the Java Platform Standard Edition (Java SE) library, in the java.util package.
Java UUID.randomUUID - 30 examples found. These are the top rated real world Java examples of java.util.UUID.randomUUID extracted from open source projects. You can rate examples to help us improve the quality of examples.