Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import java.util.Random;

public class Main {
    private static Random random = new Random();

    public static String generateRandomUTDID() {
        StringBuffer localStringBuffer = new StringBuffer();
        int i = 0;
        while (i < 24) {
            localStringBuffer.append((char) (random.nextInt(25) + 65));
            i += 1;
        }
        return localStringBuffer.toString();
    }
}