Check If Square Root Is Integer Immutable In Java