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??
Asked
Active
Viewed 934 times
1 Answers
1
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

Christian
- 739
- 6
- 10