diff --git a/src/main/scala/io/github/sullis/helloworld/HelloWorldApp.scala b/src/main/scala/io/github/sullis/helloworld/HelloWorldApp.scala index 85483d7..c824e6b 100644 --- a/src/main/scala/io/github/sullis/helloworld/HelloWorldApp.scala +++ b/src/main/scala/io/github/sullis/helloworld/HelloWorldApp.scala @@ -1,8 +1,15 @@ package io.github.sullis.helloworld object HelloWorldApp extends App { - args.foreach { arg => - System.out.println(s"arg: ${arg}") - } + System.out.println("Hello world") + + printArgs() + + def printArgs(): Unit = { + + args.foreach { arg => + System.out.println(s"arg: ${arg}") + } + } }