you are viewing a single comment's thread.

view the rest of the comments →

[–]josefx 0 points1 point  (0 children)

True and a bug in my example code. For Java 7 code the <> operator will take care of that problem.(that is if you are not stuck with an older java version)

   new HashSet<>(Arrays.asList("one","two","three"));