Initialize Hashset Java

[Solved] Initialize Hashset Java | Scala - Code Explorer | yomemimo.com
Question : java create a set with values

Answered by : jack-waller

Set<String> set = new HashSet<>(Arrays.asList("a", "b", "c"));

Source : https://www.baeldung.com/java-initialize-hashset | Last Update : Fri, 03 Apr 20

Answers related to initialize hashset java

Code Explorer Popular Question For Scala