Java Program – to calculate the area of a square.

Output: