Search

Dark theme | Light theme

August 28, 2008

Use fix code to correct your code in NetBeans

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: