The Square in Java