随机生成32字符串的方法

版权声明:本文为博主原创文章,未经博主允许不得转载。 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);
	}

}

猜你喜欢

转载自blog.csdn.net/zhang_09_11/article/details/83277446
今日推荐