@@ -175,7 +175,9 @@ object LexicalScopes extends ScalaTutorialSection {
175175 *
176176 * = Packages and Imports =
177177 *
178- * Top-level definitions can be organized in ''packages'':
178+ * Top-level definitions can be organized in ''packages''.
179+ * To place a class or object inside a package, use a package clause
180+ * at the top of your source file:
179181 *
180182 * {{{
181183 * // file foo/Bar.scala
@@ -223,6 +225,48 @@ object LexicalScopes extends ScalaTutorialSection {
223225 * Bar.someMethod
224226 * }
225227 * }}}
228+ *
229+ * = Automatic Imports =
230+ *
231+ * Some entities are automatically imported in any Scala program.
232+ *
233+ * These are:
234+ *
235+ * - All members of package `scala`
236+ * - All members of package `java.lang`
237+ * - All members of the singleton object `scala.Predef`.
238+ *
239+ * Here are the fully qualified names of some types and functions
240+ * which you have seen so far:
241+ *
242+ * {{{
243+ * Int scala.Int
244+ * Boolean scala.Boolean
245+ * Object java.lang.Object
246+ * String java.lang.String
247+ * }}}
248+ *
249+ * = Writing Executable Programs =
250+ *
251+ * So far our examples of code were executed from your Web
252+ * browser, but it is also possible to create standalone
253+ * applications in Scala.
254+ *
255+ * Each such application contains an object with a `main` method.
256+ *
257+ * For instance, here is the "Hello World!" program in Scala:
258+ *
259+ * {{{
260+ * object Hello {
261+ * def main(args: Array[String]) = println("hello world!")
262+ * }
263+ * }}}
264+ *
265+ * Once this program is compiled, you can start it from the command line with
266+ *
267+ * {{{
268+ * $ scala Hello
269+ * }}}
226270 */
227271 def nothing (): Unit = ()
228272}
0 commit comments