class Hellos { component Button hws[10]{ {text == "Hello"}, {text == "Bonjour"}, {text == "Kon Ni Chi Wa"}, ... {text == "Ni Hao"}}; }This class has ten buttons, each of which has a different text on it.
Arrays are also convenient for imposing constraints on a group of components, such as global and aggregate constraints. Sometimes, we want to impose constraints on an arbitrary group of components. For this purpose, DJ provides anonymous arrays. An anonymous array is an array that can be constructed by explicitly listing its elements or implicitly by using a set expression.