var myTree = new Tree();
myTree.addTreeItem("my tree item A");
myTree.addTreeItem("my tree item B");
myTree.addTreeItem("my tree item C");
myTree.addTreeItem("my tree item D");
Please take the time to choose the correct forum for your posts. This forum is for questions on XYZ. For more information, please read this.
This post has been moved to a more appropriate forum.
Also, please be sure to use code tags when posting code to the forums. Unformatted code is extremely hard to read and many people that might be able to help you will just move along to posts that are easier to read. Please read this for more information.
You can go back and change your post to add code tags by clicking the button on your post.
Please read ItDoesntWorkIsUseless and TellTheDetails: you wouldn't expect an auto mechanic to diagnose and solve a problem with your car without being able to look at the car. We're not at your machine and have no other information other than what you choose to share--without knowing what's happening, what you expected, what (if any) errors you received, and so on, it's impossible to help.