Initializing a Set
Set<String> countrySet = Set.of("France","Belgium","Germany");
Initializing a List
List<String> countryList = List.of("France","Belgium","Germany");
Initializing a Map
Map<String,String> countryCodeMap = Map.of("France","FR","United States","US","Canada","CA");
Set<String> countrySet = Set.of("France","Belgium","Germany");
Initializing a List
List<String> countryList = List.of("France","Belgium","Germany");
Initializing a Map
Map<String,String> countryCodeMap = Map.of("France","FR","United States","US","Canada","CA");