BBjspHashMap::put (Deprecated)

The BBJSP system is deprecated. For new development, use BBxServlet.

Description

In BBj 16.0 and higher, this method stores an object in this BBjspHashMap.

Syntax

Return Value

Method

Object

put(string key, Object val)

Parameters

Variable

Description

key

The key value.

val

The object.

Return Value

The previously set value.

Remarks

None.

Example

declare BBjspHashMap map!

map! = new BBjspHashMap()

map!.put("V1",BBjAPI().TRUE)
map!.put("V2",0)
map!.put("V3",1.23)
map!.put("V4","9.1")
map!.put("V4","Hello World")

print map!

See Also

BBjspHashMap