area of isosceles triangle in java