Skip to content

Commit

Permalink
print args
Browse files Browse the repository at this point in the history
  • Loading branch information
sullis committed Jul 29, 2024
1 parent b217480 commit d56697e
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/main/scala/io/github/sullis/helloworld/HelloWorldApp.scala
Original file line number Diff line number Diff line change
@@ -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}")
}
}
}

0 comments on commit d56697e

Please sign in to comment.