Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.util.HashSet;

public class Main {
    public static void main(String args[]) {
        HashSet<String> hs = new HashSet<String>(20, 0.75F);

        hs.add("java2s.com");
        hs.add("j a v a2s.com");

        System.out.println(hs);
    }
}