版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/zhang_09_11/article/details/83277446
import java.util.UUID;
public class uuuid {
public static void main(String[] args) {
String result= UUID.randomUUID().toString().replace("-", "").toUpperCase();
System.out.println(result);
}
}