Create a dictionary Version 7 (Java)

Action group: Collections


Description

Creates a new empty dictionary instance

Action icon


Settings of parameters

PropertyDescriptionTypeFilling exampleMandatory field
Results
DictionaryThe variable to which the created dictionary will be writtenRobin.Dictionary

Special conditions of use

If an existing dictionary is fed into the result, it will be cleared.

Example of use  

Task

Create a new dictionary and add there the value "Moscow" with the key "1".

Solution

Use the "Create a dictionary", "Add pair" action. 

Implementation

  1. Assemble a robot scheme consisting of actions:


  2. Set the parameters of the "Add pair" action. 


  3. Launch the robot using the "Start" button in the top panel.

Result

A new dictionary was created and the value "Moscow" was successfully added there. 

  • Нет меток