need help in java
this is the code given
public class RecursiveMath {
public class Node{
char value;
Node next;
public Node(char val) {
value=val;
}
}
Node expression;
public RecursiveMath() {
expression = null;
}
public void extendExpression(String extension) {
}
public boolean validExpression() {
//todo
}
public int validExpressionHelper(int openClosed, Nodecurrent) {
//todo
}
//already implemented
public String toString() {
String ret = “”;
Node temp = expression;
while(temp!=null) {
ret=ret+temp.value;
temp=temp.next;
}
return ret;
}
}
Problem:
Math Makes the World Go
OR
OR