posted 12 years ago
Ken, Jim...I'M BAAAAAAACK!!
I hope this next assignment is better than the last. This one is a hummer...robots...my mind just spins typing the word.
To begin...I haven't even gotten into the meat of the multiple classes involved.
I have a class called Coordinates.
Inside I have a method:
I get "cannot find symbol".
What do you think?
Steph
I hope this next assignment is better than the last. This one is a hummer...robots...my mind just spins typing the word.
To begin...I haven't even gotten into the meat of the multiple classes involved.
I have a class called Coordinates.
Inside I have a method:
I get "cannot find symbol".
What do you think?
Steph
Stephanie Dears
Ranch Hand
Posts: 43
posted 12 years ago
Jim,
I knew you would be glad to hear from me.
Diels mentioned using Math.sqrt...I did that and received no error. On to the next step. We can only hope.
Thanks Jim and Diels.
Henry,
Yes, the x, y, and distance were defined. How do you define a sqrt? I looked in my books and on the net and couldn't find anything.
I knew you would be glad to hear from me.
Diels mentioned using Math.sqrt...I did that and received no error. On to the next step. We can only hope.
Thanks Jim and Diels.
Henry,
Yes, the x, y, and distance were defined. How do you define a sqrt? I looked in my books and on the net and couldn't find anything.
Jim Yingst
Wanderer
Sheriff
Sheriff
Posts: 18671
posted 12 years ago
[Steph]: How do you define a sqrt?
Probably you just want to use Math.sqrt() as Diels suggested. It's possible to define your own, but most likely that's well outside the scope of this problem. If you really want to know the details, you can google "Newton's method" and "square root" together to get a lot of discussion of the most common technique. But only do that if you're sure you can't just use a preexisting method like Math.sqrt().
[ December 05, 2005: Message edited by: Jim Yingst ]
Probably you just want to use Math.sqrt() as Diels suggested. It's possible to define your own, but most likely that's well outside the scope of this problem. If you really want to know the details, you can google "Newton's method" and "square root" together to get a lot of discussion of the most common technique. But only do that if you're sure you can't just use a preexisting method like Math.sqrt().
[ December 05, 2005: Message edited by: Jim Yingst ]
"I'm not back."  Bill Harding, Twister
You've gotta fight it! Don't give in! Read this tiny ad:
The WEB SERVICES and JAXRS Course
https://coderanch.com/t/690789/WEBSERVICESJAXRS
