So, I just want to know how would I change a node to an int. In my public class I have a string, boolean, count, and a Map. I have to input a string in the class. So, in the int method I'm working on would I just call the string to my node and .length() it ? The method I'm working on has to find the longest word in a specific tree. And, I don't know how I would recursively call the map, since it has a String and a node.

Recommended Answers

All 2 Replies

Your question makes no sense. Please re-explain & give code also.

If your using a node, its probably a class with various fields and methods. Write a tostring method in your field and try to convert the fields you want (int,double,string,char) into a string using tostring. then return that stringed datatype.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.