what if i wanted to find the square root of a previously supplied integer which is now saved in a string.
Please show examples with GUI...ur site is the best so far for Java...
import java.lang.Math;public class Find_sqrt { public static void main(String s[]){ String s="23"; int i=Integer.parseInt(s); int result=Math.sqrt(i); System.out.println("Square root of "+i+" : "+result); }}
Math.sqrt()
what if i wanted to find the square root of a previously supplied integer which is now saved in a string.
Toni
Please show examples with GUI...ur site is the best so far for Java...
square root of a integer saved in a string.
Post new comment