Java EnumMap values() methodThe values() method of Java EnumMap class is used to create a collection view of the values contained in this map. SyntaxParametersNA ReturnsThis method returns a collection view of the mapped values. ExceptionNA Example 1Output: Map: {Java=1, CSS=2, Python=3, Android=4} Collection: [1, 2, 3, 4] Example 2Output: Map: {Monday=1, Tuesday=2, Wednesday=3} Collection: [1, 2, 3] Next TopicJava-matcher-appendreplacement-method |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India