How to generate a Guid in Netbeans?
How can I generate a Guid in Netbeans. I have used Visual Studio in the past, and used the Guid.CreateGuid(). Is there a Guid class in NetBeans??
Assuming that in NetBeans you are using java, you could use the randomUUID() method of the class java.util.UUID class as shown below
import java.util.UUID;
public class UUIDDemo {
public static void main(String[] args) {
System.out.println(UUID.randomUUID());
}
}
For more details checkout: http://docs.oracle.com/javase/7/docs/api/java/util/UUID.html
链接地址: http://www.djcxy.com/p/91456.html下一篇: 如何在Netbeans中生成Guid?