|Figure 1. NetBean's Semantic Highlighting in Action: This code contains potential errors that the NetBeans semantic highlighting can help you avoid.|
First of all, notice the way the "x" variable in the bar() function is underlined. This means it has been declared, but is never used. This should immediately be treated with suspiciondid I mean "return x" rather than "return xx" in the next line?
This is a simple example of NetBean's semantic highlighting in action. Don't underestimate the utility of this featurefar from being simple eye candy, it can actively help you find potential bugs in your code.