Answers for "java how to make a random ID"

4

java unique id

String uuid = UUID.randomUUID().toString();
Posted by: Guest on June-10-2020
-1

how to generate random id in java

import java.util.UUID;
public class UUIDExample.
{
public static void main(String[] args)
{
UUID uuid=UUID.randomUUID(); //Generates random UUID.
System.out.println(uuid);
}
}
Posted by: Guest on January-30-2021

Code answers related to "java how to make a random ID"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language