A quick suggestion: wouldn't it be simplier to use mod function?

boolean divBy4 = myYearInt % 4 == 0