Skip to content

Instantly share code, notes, and snippets.

@nimeshneema
Last active February 28, 2026 08:38
Show Gist options
  • Select an option

  • Save nimeshneema/31d633d039123cfabd77930823591024 to your computer and use it in GitHub Desktop.

Select an option

Save nimeshneema/31d633d039123cfabd77930823591024 to your computer and use it in GitHub Desktop.
object Main:
def greet(name: String): String =
s"Hello, $name!"
def main(args: Array[String]): Unit =
val message = greet("World")
println(message)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment