Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import java.util.HashSet;

import java.util.Set;

public class Main {
    public static final String POOL1_NAME = "myFirstPool";
    public static final String POOL2_NAME = "mySecondPool";

    public static Set<String> getAvailableIds() {
        Set<String> ids = new HashSet<>();
        ids.add(POOL1_NAME);
        ids.add(POOL2_NAME);
        return ids;
    }
}