Thursday
April 17, 2014

Homework Help: shabou

Posted by Nadja on Wednesday, January 25, 2012 at 11:25am.

Can someone please make a Binarytree of these methodes in Java?:
public void add(int element)
//Adds the specified element into this datastructure.

public void clear()
//Removes all of the elements from this datastructure.

public boolean contains(int element)
//Tests if the specified element is a component in this datastructure.

public int[] inOrder()
//Returns an array containing all of the elements in this datastructure inorder.

public int[] postOrder()
Returns an array containing all of the elements in this datastructure postorder.

public int[] preOrder()
Returns an array containing all of the elements in this datastructure preorder.

public void remove(int element)
Removes the specified element from this datastructure.

public int size()
Returns the number of components in this datastructure.

public int[] toArray()
Returns an array containing all of the elements in this datastructure inorder.

String toString()
Returns a string representation of this datastructure, containing the String representation of each element inorder

Answer this Question

First Name:
School Subject:
Answer:

Related Questions

How do you.................. - How do you make someone your friend? How do you ...
HELP! PHYSICS LABS!! - CAN someone please help me...I am so confused and I have ...
Biology - Probability how can you make all these numbers make sense I am really ...
science - i have to make a 3D model of th e cytoskeleton of an animal cell and i...
english - Do you believe that it is easier to make an invalid claim than it is ...
ASAP - can someone please make up an address and a phone number that i can use ...
philosphy - I am to draft a six to eight page paper based upon a life changing ...
speech - Can you please help me out with a speech? I'm in 10th grade at High ...
adult education - I need help with someone to go over my eassy with me can ...
Math - make 10 by adding 8+5 can someone please help me with this?

Search
Members