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) {
        byte[] nbyte = { 10, 20, 30 };

        // creating UUID from byte     
        UUID uid = UUID.nameUUIDFromBytes(nbyte);

        // checking UUID value
        System.out.println("UUID value from byte: " + uid);
    }
}