java coding standard- if else statements