Login
|
Signup
langref.org
-
java
,
csharp
, and
cpp
add..
all
clojure
erlang
fantom
fsharp
go
groovy
haskell
ocaml
perl
php
python
ruby
scala
Home
All
Solved
Unsolved
Strings
Numbers
Regex
Lists
Maps
Structure
Files
Dates
OOP
Networking
XML
Algorithms
Misc
Parallel
View Problem
Maps
Declaration
Define an unmodifiable empty map
java
Map empty = Collections.EMPTY_MAP;
public class Solution11 {
public static void main(String[] args) {
Map empty = Collections.EMPTY_MAP;
}
}
java
org.apache.commons
SortedMap empty = MapUtils.EMPTY_SORTED_MAP;
import org.apache.commons.collections.MapUtils;
public class SolutionXX {
public static void main(String[] args) {
SortedMap empty = MapUtils.EMPTY_SORTED_MAP;
}
}
cpp
const std::map<T1,T2> immutable_map_instance_of_type_t1_to_t2;
const std::map<T1,T2> immutable_map_instance_of_type_t1_to_t2;
Submit a new solution for
java
,
csharp
, or
cpp
There are 18 other solutions in
additional
languages (
clojure
,
erlang
,
fantom
,
fsharp
...)