I would highly recommend the
google’s style guide, it’s a collection of coding style guide for commonly used programming languages.
The eclipse configurable Java guide can be found here. Installing the guide is quite simple, Save the style xml to a file and import it using the following dialogue box:
Window -> Preferences -> Java -> Code Style -> Formatter
Finally select the active profile as GoogleStyle.