AllTheTimeWorld.com

alice arraysAn array of animals

An array of animals

An array of SJointedModel contains, yeti, tortoise and stuffedTiger

An array of animals

An array of SJointedModel contains, yeti, tortoise and stuffedTiger


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 );
}