Java - Test if a given number is a perfect square or not

Responsive image
source