Name

keyArray()

Class

StringDict

Description

Return a copy of the internal keys array.

Examples

  • StringDict inventory;
    
    void setup() {
      size(200, 200);
      inventory = new StringDict();
      inventory.set("coffee","black");
      inventory.set("flour","white");
      inventory.set("tea","green");
      println(inventory);
      String[] theKeys = inventory.keyArray();
      println(theKeys);
    }
    
    

Syntax

  • .keyArray()
  • .keyArray(outgoing)

Return

  • String[]