Question #65900

public String toString()
@return a string representation of the node

Expert's answer

For example, if class has that structure:

public class Node<T>{

public T node;

}

than toString() method will looks like:

@Override

public String toString(){

return “Node: “ + node;

}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS