Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.util.UUID;

public class Main {
    public static void main(String[] args) {
        UUID uid = UUID.randomUUID();

        // checking version value
        System.out.println("Version value: " + uid.version());
    }
}