diff --git a/cheatsheets/index.md b/cheatsheets/index.md index 3c9ae33251..72c9337387 100644 --- a/cheatsheets/index.md +++ b/cheatsheets/index.md @@ -36,6 +36,7 @@ about: Thanks to Brendan O'Connor, this cheat | `import scala.collection._` | wildcard import. | | `import scala.collection.Vector`
`import scala.collection.{Vector, Sequence}` | selective import. | | `import scala.collection.{Vector => Vec28}` | renaming import. | +| `import java.util.{Date => _, _}` | import all from java.util except Date. | | `package pkg` _at start of file_
`package pkg { ... }` | declare a package. | |

data structures

| | | `(1,2,3)` | tuple literal. (`Tuple3`) |