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 {
    private static Set<String> getBlueSet(Set<Integer> numSet) {
        Set<String> blueSet = new HashSet<String>();
        for (Integer i : numSet) {
            if (i < 10 && i > 0) {
                blueSet.add("" + i);
            }

            if (i < 7 && i > 0) {
                blueSet.add("1" + i);
            }
        }

        return blueSet;
    }
}