Area of square in java