Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

method not found

 
Andrew Lit
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hallo,
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
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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().
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic