In general, whitespace is your friend. Add it whereever it makes code more readable. Whitespace compiles to the most efficient code possible: none!
In general, and this is subjective...
Open and close curly braces (e.g., { and }) go on a line by themselves. (Exception for javascript, where open curly brace goes on the line that creates the block.)
Leave a blank line between methods.
If it helps readability, leave a blank line between properties.
It's not strictly a whitespace issue, but only declare one variable per line. Don't stack variables in declarations.
int i, j; // stacked declaration - don't do this!
Don't stack multiple statements on one line, either.
Keep your indentations easily readable; usually 4 spaces is good.
Keep line lengths short enough to fit on your monitor. Split long lines of code, and indent continuations.
If a parameter list is too long for a single line, format with one parameter per line.
That should get you started.