Originally posted by Jesper Young:
Well, I'm confused by your question. Could you explain more clearly and in more detail what exactly you want to know?
Coding standards are ofcourse arbitrary. For Java, Sun has suggested code conventions long ago, which seem to be used by almost everybody who's programming in Java. You can find them here: Code Conventions for the Java Programming Language
Thanks. I noticed looking at the style guide there are different suggestions about spacing.
Binary operators should have a space on either side
Unary operators should be immediately preceded or followed by their operand
Commas and semicolons are always followed by whitespace
The keywords if, while, for, switch, and catch must be followed by a space
I was trying to think is there an easy way to remeber all these rules.
Thanks Will