Map.new Method

Creates a new map.

Syntax

public void new(Types key, Types value)

Run On

Called

Parameters

Examples

The following example creates a map that maps string keys onto integer values.

Map myMap = new Map(Types::String, Types::Integer);

See Also

Map Class

Map::create Method