Quick fix

For certain problems underlined with a problem highlight line, the Java editor can offer corrections. This is shown by the light bulb shown in the editor marker bar.

A Java editor indicating a quick-fixable problem with a lightbulb in the editor marker bar

To see the correction proposals use the Quick Fix action

Quick fix is also available on a problem entry in the Problem view. The Quick Fix action will open a dialog to select the correction.

Note that the light bulb is only a hint. It is possible that even with the light bulb shown, it turns out that no corrections can be offered.
A overview of quick fixes available in the Java editor can be found here.

Quick Assists are proposals available even if there is no problem or warning. See the Quick Assist page for more information.

Related concepts
Quick Fix
Quick Assist
Java editor

Related tasks

Using quick fix

Related reference

Java editor preferences
Edit menu