Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Writing Your First Program | Getting Started
Introduction to Scala

bookWriting Your First Program

Task

Your task is to create a simple Scala application. We've provided a basic template for you. You only need to replace the line // replace this line with your code with the appropriate code to display "Hello World!" on the screen.

Main.java

Main.java

copy
12345
object Main { def main(args: Array[String]): Unit = { // replace this line with your code } }

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 1. ChapterΒ 4

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

Suggested prompts:

Ask me questions about this topic

Summarize this chapter

Show real-world examples

Awesome!

Completion rate improved to 2.86

bookWriting Your First Program

Swipe to show menu

Task

Your task is to create a simple Scala application. We've provided a basic template for you. You only need to replace the line // replace this line with your code with the appropriate code to display "Hello World!" on the screen.

Main.java

Main.java

copy
12345
object Main { def main(args: Array[String]): Unit = { // replace this line with your code } }

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 1. ChapterΒ 4
some-alt