Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

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

import java.util.UUID;

public class Main {
    private static ArrayList<String> generateCharacters(int count) {
        ArrayList<String> characterPlayed = new ArrayList<>();
        for (int i = 0; i < count; i++) {
            characterPlayed.add(generateRandomString());
        }
        return characterPlayed;
    }

    public static String generateRandomString() {
        return UUID.randomUUID().toString();
    }
}