JDK工具类_____UUID标识

import java.util.UUID;

/**
 * @author Administrator
 * JDK自带general key
 */
public class UuidUtil{
	public UuidUtil() {
	}
	public static String getUid(){
		UUID uid=UUID.randomUUID();
		return uid.toString();
	}
	public static void main(String[] args) {
		System.out.println(getUid());
	}
}

//运行结果


posted @ 2017-02-14 13:53  蜜獾互联网  阅读(2)  评论(0编辑  收藏  举报  来源