The Java method that automatically generates the ID number
- 2020-04-01 03:43:39
- OfStack
This article illustrates how Java automatically generates ID Numbers. Share with you for your reference. The specific implementation method is as follows:
import java.util.UUID;
public class SystemAttribute {
public static String getUUID() {
return UUID.randomUUID().toString().replace("-","");
}
}
I hope this article has been helpful to your Java programming.