Skip to main content
deleted 4 characters in body
Source Link
Naman
  • 32.6k
  • 32
  • 240
  • 384

With the release of and the convenience factory methods this is possible in a cleaner way as:

Set set2set = Set.of("a", "b", "c");

With the release of and the convenience factory methods this is possible in a cleaner way as:

Set set2 = Set.of("a", "b", "c");

With the release of and the convenience factory methods this is possible in a cleaner way:

Set set = Set.of("a", "b", "c");
Source Link
Naman
  • 32.6k
  • 32
  • 240
  • 384

With the release of and the convenience factory methods this is possible in a cleaner way as:

Set set2 = Set.of("a", "b", "c");