mirror of
https://github.com/chubin/cheat.sheets
synced 2024-11-11 01:10:31 +00:00
19 lines
357 B
Plaintext
19 lines
357 B
Plaintext
// wildcard import.
|
|
import scala.collection._
|
|
|
|
// selective import.
|
|
import scala.collection.Vector
|
|
import scala.collection.{Vector, Sequence}
|
|
|
|
// renaming import.
|
|
import scala.collection.{Vector => Vec28}
|
|
|
|
// import all from java.util except Date.
|
|
import java.util.{Date => _, _}
|
|
|
|
// declare a package.
|
|
package pkg // at start of file
|
|
package pkg { ... }
|
|
|
|
|