This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Adam, I read it as "unit of indentation is 4 spaces and tag eight spaces. The exact nature of indent ( tab vs. spaces) is unspecified'. I decided to disable tabs and use spaces. so, I am using 4 spaces. Aruna.
I'm not sure about the coding conventions of my assigment..for example what is the right indentation between the row where is "throws" and the rows where is the "switch"?
Break after a comma. Break before an operator. Prefer higher-level breaks to lower-level breaks. Align the new line with the beginning of the expression at the same level on the previous line. If the above rules lead to confusing code or to code that's squished up against the right margin, just indent 8 spaces instead. Therefore, your code becomes this: