
Java
In Alice's interactive interface, students drag and drop graphic tiles to create a program, where the instructions correspond to standard statements in a production oriented programming language, such as Java, C++, and C#. Alice allows students to immediately see how their animation programs run, enabling them to easily understand the relationship between the programming statements and the behavior of objects in their animation. By manipulating the objects in their virtual world, students gain experience with all the programming constructs typically taught in an introductory programming course.
Primitive methods in Alice 2.0Methods in Alice
Methods in Alice can exist at either the world level or at the class (object) level. The closest analogy that I can draw to more conventional programming languages such as Java is that world-level methods are sort of like class methods in Java while class-level methods are definitely like instance methods in Java.
For this program, I defined two additional methods at the world level named:
As the names imply, the purpose of the first method is to get everything ready for the show and the second method actually presents the show. As you can see, the code in Listing 2 calls these two methods in sequence.
Copyright © 2026 eLLeNow.com All Rights Reserved.