Java Static Initializer Block

  • + 1 comment

    @above No that code is too complicated. The else if statement is not neccessary (just need an else statement). You just need to set flag = true when both are greater than 0. (Lengths can't be negative)