Java Reference
In-Depth Information
}
return Math.sqrt(number);
};
Let's test it out:
squareRoot(121);
<< 11
squareRoot(-1);
<< "You can't square root negative numbers"
Search WWH ::




Custom Search