area of octagon in java