mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-24 10:01:38 +00:00
Merge pull request #1802 from juusaw/patch-3
[scala/eng] Added Java import to misc
This commit is contained in:
commit
88eec09b88
@ -621,6 +621,9 @@ import scala.collection.immutable.{List => ImmutableList}
|
|||||||
// Import all classes, except some. The following excludes Map and Set:
|
// Import all classes, except some. The following excludes Map and Set:
|
||||||
import scala.collection.immutable.{Map => _, Set => _, _}
|
import scala.collection.immutable.{Map => _, Set => _, _}
|
||||||
|
|
||||||
|
// Java classes can also be imported. Scala syntax can be used
|
||||||
|
import java.swing.{JFrame, JWindow}
|
||||||
|
|
||||||
// Your programs entry point is defined in an scala file using an object, with a
|
// Your programs entry point is defined in an scala file using an object, with a
|
||||||
// single method, main:
|
// single method, main:
|
||||||
object Application {
|
object Application {
|
||||||
|
Loading…
Reference in New Issue
Block a user