Excuse me for what might be a very obvious question, but I have literally spent the whole day working on a project and now I am stuck with a very simple issue, yet I cant seem to work it out. So I have this very simple method
public String method(final Node<Tag> child) {
return child.getData().getAttributeValue();
}
I believe it returns a single string, now my question is how can i get that return string and print it inside another method. In other words I want to print what this method returns. Thanks a lot for your time!
EDIT: I tried calling the method with the two options below and I had the following errors:
BrowserGui.java:185: error: cannot find symbol
String foo = method(childNode);
^
symbol: variable childNode
and by simply calling it this occured:
BrowserGui.java:195: error: cannot find symbol
System.out.print(child.getData().getAttributeValue());
^
symbol: variable child
location: class BrowserGui.TextClickListener
1 error