Jim: In some cases yes, the SCJP format may be intentionally confusing...[snip]...More commonly though, the code samples have been formatted specifically in order to fit into a very small allowed screen area.
Originally posted by Carol Murphy:
I think its a matter of choice. Personally, I don't know why anyone would want to use the sun style over ranch style. It's much easier to identify blocks of code when the enclosing braces are aligned vertically, and the different elements of the code are placed in such a way as to visually represent the structure.
Besides, it's aesthetically more appealing!