Here you can find the source of generateAppIds(int noOfAppIdsToGenerate)
public static String[] generateAppIds(int noOfAppIdsToGenerate)
//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]); } }