I found in this site http://howtodoinjava.com/2012/11/20/double-brace-initialization-in-java/ a new way to start my collection
I always have a doubt about java
Can I have one structure like with do in Delphi, to make my code be like this
        Set<String> params = new HashSet<String>() {
        {
            add("param one");
            add("param two");
            add("param three");
            add("param four");
        }
    };
And where can I find other interesting practices like that showed in site?
Thanks
 
     
    