Code style
To follow the proper coding style for this class, you should have Eclipse insert spaces for indentation instead of tabs. This ensures that the code looks the same in every editor, regardless of the tab width settings. To do so, follow these instructions:
In Eclipse, select Preferences in the Window menu.
In the navigation pane on the left side of the Preferences dialog, drill down to Java > Code Style > Formatter.
Click Edit....
In the Indentation tab, under General settings, set the Tab policy to Spaces only. Underneath that, set both the Indentatation size and Tab size to 2.
In the Control statements tab, in the General area, select all four checkboxes.
In the Line wrapping tab, in the General settings area, set the Maximum line width to 100.
In the Profile name textbox at the top of the dialog, rename the profile to something like Mine and click OK.
Back in the main Preferences dialog, click Apply to ensure that your new profile has been selected.
Still in the main Preferences dialog, in the navigation pane on the left side, drill down to General > Editors > Text Editors, and check "Show line numbers".
Select OK to close the dialog.