Where are you going to draw the tree? Is this a console window or in a GUI?
What class is the drawRectangle() method in?
NormR1
Posting Sage
7,742 posts since Jun 2010
Reputation Points: 1,158
Solved Threads: 793
Skill Endorsements: 16
Graphical User Interface.
Where will the drawing been seen?
NormR1
Posting Sage
7,742 posts since Jun 2010
Reputation Points: 1,158
Solved Threads: 793
Skill Endorsements: 16
You will have to read the API doc for the classes you are using: Turtle and World. They must be in some third party package.
They are not part of the Java SE packages and classes.
No one can help you with those unknown/undefined classes.
NormR1
Posting Sage
7,742 posts since Jun 2010
Reputation Points: 1,158
Solved Threads: 793
Skill Endorsements: 16