how to change the color of eclipse code example
Example 1: change color of eclipse editor
Go to Window > Preferences, then navigate to General
> Editors > Text Editors. In the panel on the right,
from the Appearance color options list select Background
color, then use the color picker to choose the desired
color (the System default checkbox must be unchecked).
Example 2: change font color eclipse
Window > Preferences > Java > Editor > Syntax Coloring