diff options
Diffstat (limited to 'scalalib/test/resources')
-rw-r--r-- | scalalib/test/resources/hello-world/core/src/Main.scala | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/scalalib/test/resources/hello-world/core/src/Main.scala b/scalalib/test/resources/hello-world/core/src/Main.scala index 32706d44..d86f4da8 100644 --- a/scalalib/test/resources/hello-world/core/src/Main.scala +++ b/scalalib/test/resources/hello-world/core/src/Main.scala @@ -1,5 +1,8 @@ import scala.collection._ import java.nio.file.{Files, Paths} +import java.sql.Date +import java.time.LocalDate +import javax.swing.JButton import Main.{args, greeting} object Main0{ @@ -10,7 +13,11 @@ object Main0{ } } object Main extends App { - + // testing correct loading of java standard modules in java 9 + // https://github.com/lihaoyi/mill/issues/251 + new JButton("hello from javax") + val now = Date.valueOf(LocalDate.now()) + println(s"Today is the date: ${now}") val person = Person.fromString("rockjam:25") val greeting = s"hello ${person.name}, your age is: ${person.age}" println(greeting) |