Rahul.p Kumar wrote:
Delete your class file. Probably your class file and java are not in sync. have you added that if line later than rest of lines ? please don't forget to post the final outcome from netbeans forum.
Paul Clapham wrote:My guess is that for the first run, you were looking at source code which didn't match the compiled class which you ran. Then you changed the source code and recompiled before the second run. This would explain why the second run did what you expected.
To test my theory, change the code back to the version for the first run and recompile it. If my theory is correct, the third run should also do what you expected.
fred rosenberger wrote:i'd verify "Utils.IsTextNode(tNode)" is really returning what you think it is. put in some System.out.println() statements to be sure.
Rahul.p Kumar wrote:Let us say qq = Utils.IsTextNode(tNode) returns boolean. Now qq alone should serve your purpose. Anyway there is no difference between reassigning. So, check for qq, what it is returning, take the opposite meaning.