Name

keyArray()

Class

IntDict

Description

Return a copy of the internal keys array. In contrast to the keys() method, this array can be modified.

Examples

  • IntDict inventory;
    
    void setup() {
      size(200, 200);
      inventory = new IntDict();
      inventory.set("cd", 84);
      inventory.set("tapes", 15);
      inventory.set("records", 102);
      println(inventory); 
      String[] theKeys = inventory.keyArray();
      println(theKeys);
    }
    
    

Syntax

  • .keyArray()
  • .keyArray(outgoing)

Return

  • String[]