Java tutorial
FileShortTitle:Create EnumMap with its constructor FileLongTitle:Create EnumMap with its constructor FileTag:===SectionShortTitle:Question SectionLongTitle:Question SectionContent: <p>We would like to know how to create EnumMap with its constructor.</p> ===SectionShortTitle:Answer SectionLongTitle:Answer SectionContent: <myPreCode> import java.util.EnumMap; enum Foo { } public class Main { public static void main(String[] args) { EnumMap<Foo, String> map = new EnumMap<Foo, String>(Foo.class); } }</myPreCode> ===