Issues with Binary Trees and subtrees

I need to build a tree like this,and produce the numbers below randomly,and the operators

also produced randomly.Please note that there are 4 constants,and 3 operators all to be randomly generated.The tree is such:

-10

/

-

/ \

/*

/ \/ \

16.0 16.0 2.0 5.0

In arithmetic format it is: ((16.0 / 16.0) - (2.0 * 5.0)) = - 10

So far,this is what I have,not sure how to proceed from here,any help would be greatly appreciated.Is this what is called recursions? Not sure.

publicclass TestTree{

// evaluate ((16.0 / 16.0) - (2.0 * 5.0)) = - 10

publicstaticvoid main(String[] args){

System.out.println("");

}

publicint randContants(){

}

publicchar randOperators(){

}

public String toString(){

return"";

}

}

[1558 byte] By [exl5a] at [2007-11-27 9:18:00]
# 1

> ...

> So far,this is what I have,not sure how to proceed

> from here,any help would be greatly appreciated.Is

> this what is called recursions? Not sure.

> ...

Don't take this as an offense, but I have read your previous post(s) and I really think you should study some more basics before creating binary trees yourself.

prometheuzza at 2007-7-12 22:08:52 > top of Java-index,Java Essentials,New To Java...
# 2
> Don't take this as an offenseNo offense taken.I understand ,its not easy..Im trying to learn.Besides,Im not easy to offend either way.
exl5a at 2007-7-12 22:08:52 > top of Java-index,Java Essentials,New To Java...