HashMaps and arrays
HashMaps and arrays are two types of language constructs.
A hashmap sets up the mapping of keys to values. For
example,
var map = [];
map["a"] = "Apple";
map["b"] = "Boy";
out.writeln ("map = " + map);
out.writeln ("map[a] = " + map["a"] );
map.remove("a");
out.writeln ("map = " + map);
An array is a list of values. For
example,
var array = [];
array.add("a", "b", "c");
out.writeln ("array = " + array);
out.writeln ("array[0] = " + array[0]);
array.remove(0);
out.writeln ("array = " + array);