We assume that JavaSDK and a Java development environment (NetBeans, Eclipse, BlueJ etc.) are installed on your computer.
In order to use the Turtle library, you must save it on your computer and integrate it into your Java development environment.
import ch.aplu.turtle.*; public class Tu1 { Turtle joe = new Turtle(); public Tu1() { joe.forward(50); joe.right(90); joe.forward(50); } public static void main(String[] args) { new Tu1(); } }
*The name aplu5.jar comes from the developer of the class library Turtle Prof. Dr. Aegidius Plüss.