NetBeans has a great Java editor and I am just learning how many useful features it has. When we write Java code which is not correct we get a warning/error icon in the gutter. When we press Alt+Enter (in Windows) we get a list of suggestions to fix the code. And most of the time NetBeans has very useful suggestions. The following screenshot shows the suggestions if we have not yet imported a class we declare:
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUdOTczHvh_WDqe9YmMjsxiEqNndoLuZeFQk4ynx2zW4rt_uqXXCPUXdORFOgRWK587l7LSE546YNlbAZxj0l5vkmVVKg-CyHsDcyloj5_u7Un5sYeh7kTDL16y_kbhrnOi3Sp0uiexue1/s320/netbeans-alt-enter.png)