Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Apache License 

import java.util.UUID;

public class Main {
    private static final String b = String.format("0000%4s-0000-1000-8000-00805f9b34fb", new Object[] { "...." });

    public static String parseUUID(UUID uuid) {
        String s = uuid.toString();
        if (s.matches(b)) {
            s = s.substring(4, 8);
        }
        return s;
    }
}