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) {
        // creating two UUIDs      
        UUID u1 = UUID.randomUUID();
        UUID u2 = UUID.randomUUID();

        // checking equality
        System.out.println("Is two UUIDs equal: " + u1.equals(u2));
    }
}