Java tutorial
import java.util.UUID; public class Main { public static void main(String[] args) { // creating UUID UUID uid = UUID.randomUUID(); // checking string representation System.out.println("String value: " + uid.toString()); } }