the build output is
my code is this....Quote:
C:\Documents and Settings\STI\My Documents\SqrtException.java:22: sqrt(double) in java.lang.Math cannot be applied to ()
Result = Math.sqrt();
^
1 error
Process completed.
:(:(:confused::confused: im confused what should i put in import****Quote:
import javax.swing.*;
import java.lang.Math.*;
public class SqrtException
{
public static void main(String[] args)throws ArithmeticException
{
int num;
int Result;
String inputString;
inputString = JOptionPane.showInputDialog(null,
"Enter a number to be square-rooted");
num = Integer.parseInt(inputString);
try
{
Result = Math.sqrt();
}
catch(ArithmeticException exception)
{
if (num<0);
}
JOptionPane.showMessageDialog(null,"cannot use negatives");
System.exit(0);
}
}
helP me pLs...

