Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
To use declarations in packages, you have to import them, just as you do in Java and similarly for other languages. However, compared to Java, Scala greatly expands your options. The following example illustrates several ways to import Java types:
// code-examples/TypeLessDoMore/import-example1.scala
import java.awt._
import java.io.File
import java.io.File._
import java.util.{Map, HashMap}