Java realizes the calculation of the perimeter area of a rectangle