[javac] C:\FWSrc\src\com\floorwizard\applet\estimation\EW_Util_Spc.java:1089: sqrt(double) in java.lang.Math cannot be applied to (java.lang.String)

[javac] adjustLength = (int)Math.floor(Math.sqrt(Math.pow(adjustDisplacement.x,2.0) + Math.pow(adjustDisplacement.y,2.0)));

[javac] ^

The carrot is under the dot in Math.sqrt .

adjustDisplacement is a ...point2D.Double()

adjustLength is an int

I don't get it...

[javac] adjustLength = (int)Math.floor(Math.sqrt(

[javac] ^

The carrot is under the dot in Math.sqrt .

adjustDisplacement is a ...point2D.Double()

adjustLength is an int

I don't get it...

but sqrt(double) in java.lang.Math cannot be applied to (java.lang.String) means you are trying to do a sqrt on a string instead of double

{

int adjustLength = (int) Math.floor(Math.sqrt(Math.

System.out.println(adjustL

}

works fine

dont know why you get that...

try pasting the above in your code in ur ide and see

what ide are you using

This one is on us!

(Get your first solution completely free - no credit card required)

UNLOCK SOLUTION
Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.