How find sqare root of big intiger number

How find sqare root of big intiger number

Previous Home Next

 

This example shows how the string is convert to the long primitive type.

Parselong method of long class is used to convert string to the long primitive type.
 ParseLong method of long class is static method. This throw the exception called NumberFormatException if string is not parse to the long primitive type.


 

package Example;

public class Stringtolong {


public static void main(String[] args) {
String str= new String("50");
long l =Long.parseLong(str);
System.out.println(l);



}

}

50
Previous Home Next