Package or Import?

Report a typo

Arrange the code blocks so that you get a correct Scala file that will compile. Note that the libs directory contains other libraries besides math.

Put the items in the correct order
import scala.math.sin
object MyMath {
def doubleSin(angle: Double) = sin(angle) * 2
}
package math
package libs
___

Create a free account to access the full topic