how-to

Math

How to compute square root value

For computing use static method from java.lang.Math:

double d = Math.sqrt( 9 );

System.out.println( d );

The output will be:

3.0