It's not a secret anymore!
The moose likes Beginning Java and the fly likes method not found Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "method not found" Watch "method not found" New topic

method not found

Andrew Lit
Ranch Hand

Joined: Jul 01, 2002
Posts: 135
could you expalin me how to use method atan from java.lang.Math.
cause when i try this

i get error typed in the topic.
thank you for the help.
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
Note that you cannot import methods. Import statements tell the compiler where to find a class or interface.
Also, all classes in the java.lang package are automatically imported. So, you don't have to explicitly import them.
So, to use a static utility method of the Math class, try Math.someMethod().

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
I agree. Here's the link:
subject: method not found
It's not a secret anymore!