Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

As another example, here is how to statically import some of the Math functions:

Code Block
import static java.lang.Math.*
println sin(123.456) * cos(456.789)
// => 0.24733809349262376