Java中,根号通常通过Math类的sqrt()方法表示,计算数字number的平方根可写为double result = Math.sqrt(number);
在线咨询: QQ交谈
邮件:HI@E.KD.CN