The error is this:
The method add(String, int) in the type DataNode is not applicable for the arguments (String, String)
However, in the DataNode class, I have a number of overloaded add()
methods, including one that takes a String
and an int
and one that takes two String
s. It appears that Eclipse isn't "seeing" the right add()
method.
I've tried things like refreshing the project and files and removing the method, saving the file, then adding it back. No matter what I've tried, the error persists.
Does anyone know the cause and how to correct it?