Create collection Version 7 (Java)

Action group: Collections


Description

Creates a new empty instance of the collection.

Action icon

Settings of parameters

PropertyDescriptionTypeFilling exampleMandatory field
Results
CollectionThe variable to which the created collection will be writtenRobin.Collection

Special conditions of use

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

Example of use 

Task

Create a collection using the "Create Collection" action and add the first element "Moscow" to it.

Solution

Use the "Create collection" and "Add object" actions. 

Implementation

  1. Assemble a robot scheme consisting of actions:


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


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

Solution

An instance of a new collection has been created and the first entry has been made to it.

  • Нет меток