Hi all,
I am having a problem with running the following code.
I am trying to write a program that captures and prints square root of four numbers. I can't continue because my method shows an error which I can't find.
Thanks for any help in advance.
Quote:
package javaapplication9;
public class square {
public double add(double a,double b,double c,double d){
c=a*a;
d=b*b;
double x=Math.sqrt(c+d);
double y=Math.sqrt(c-d);
double max=x+y;
System.out.println("X is:" + add(a,b,c,d));
}
public static void main(String[] args) {
}
}

