Java UUID Create generateAppIds(int noOfAppIdsToGenerate)

Here you can find the source of generateAppIds(int noOfAppIdsToGenerate)

Description

generate App Ids

License

Apache License

Declaration

public static String[] generateAppIds(int noOfAppIdsToGenerate) 

Method Source Code

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

import java.util.ArrayList;

import java.util.List;

import java.util.UUID;

public class Main {
    private static List<String> genAppIds = new ArrayList<>();

    public static String[] generateAppIds(int noOfAppIdsToGenerate) {
        List<String> appIds = new ArrayList<>();
        for (int i = 0; i < noOfAppIdsToGenerate; i++) {
            UUID uuid = UUID.randomUUID();
            genAppIds.add(uuid.toString());
            appIds.add(uuid.toString());
        }//from   w  w w  . j av  a 2s. c om
        return appIds.toArray(new String[0]);
    }
}

Related

  1. generate()
  2. generate()
  3. generate()
  4. generate()
  5. generateApiAccesskeyId()
  6. generateAttributeId()
  7. generateBoundary(final String value)
  8. generateClientId()
  9. generateConnectionId()