Arrays: Working with groups of objects


Text of video

Download the Alice project: array-objects.a3p

public void myFirstMethod() {
    SJointedModel[] animals = new SJointedModel[] {
        this.yeti, this.tortoise, this.stuffedTiger
    }
    ;
    eachInTogether( ( SJointedModel actor )-> {
        actor.say( "hello" );
    }, animals );
} 

NEXT: The animals talk: Parallel Arrays