help me :<
need java source. (or hint?)
I only!! study java for 7 days.. but my professor give me the terrible homework.
it would use stack , Stringtokenizer, BinaryNodeTree.
But I don't know about stack and BTree..
RULE :
using kind of operator :
*, /, %, +, -, <, >, <=, >=, ==, !=, &&, ||
ex>
input : 3 + 5 * 5 - 6
output : ( 3 + ( 5 * 5 ) - 6 )
22
input : 6 + 7 * 10 ? 6 + 8 / 3
output: (((6 + (7 * 10)) ? 6) + (8 / 3))
72.67
input : 3 > 6 && 3 < 5
output : (( 3 > 6 ) && ( 3 < 5 ))
False
homework deadline is sat. plz help me... |