- Encoding: UTF-8
- Line ending: LF
- Line length: 100 characters
- Indentation: with tabs (1 tab should be displayed as 4 spaces)
Put a space where it's useful, ie after a comma, around keywords, etc.
- No space when casting:
(int)value
- No trailing space at the end of a line.
- No empty line at the end of a file.
- No empty line after the declaration of a class/interface/etc.
Learn from the code that is already there. And follow this draft: http://cr.openjdk.java.net/~alundblad/styleguide/index-v6.html