If I trace the following code, I will notice that the first if-block is an exceptional code block. However, if I add an "else" to that, I may treat both are operational code block.
Also, for the main operational block, there may be some nested blocks. I prefer minimizing the nested level.
public String myMethod(input) {
if (!validate(input)) {
return "invalid input";
}
operation1();
if (someCondition) {
operation2();
} else {
operation3();
}
operation4();
operation5();
return operation6();
}