NetBeans Error: Field <fieldname> not used

I have a Java project which I'm developing using NetBeans 8.0.2. A private field named "wordCount" in one of the class definitions is being flagged by NetBeans as "unused." I'm not sure why I'm getting this warning since several of the class methods contain references to that field. I've been away from Java for quite a while, so I suspect there's something obvious that I'm missing.
Who is Participating?
I doubt that class is the problematic one, as it IS used. In any case, what you're getting sounds like a warning rather than an error
babyb00merAuthor Commented:
Yes, it looks like you were right! By the time I finished coding and testing the program, that warning "automagically" disappeared!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.