News

EnumSet<Color> es4 = EnumSet.copyOf (es3); //here copy of all es3 colors into es4 and displayed EnumSet<Color> es5 = EnumSet.complementOf (es3); //here only we not mensection colors will display ...
Although the Java enum can be used with any Java collection, its full power is best leveraged when used with the EnumMap and EnumSet. Why would I use an EnumMap rather than a HashMap?