Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lernen Challenge: Specify the Data Types | Variables and Data Types
Introduction to Scala

bookChallenge: Specify the Data Types

Task

Your task is to replace the blanks ___ with the correct data types for each of the variables. For the temperature variable use the integer data type which takes up the least memory provided that the number fits in its range.

Main.java

Main.java

copy
123456789
object Main { def main(args: Array[String]): Unit = { val temperature: ___ = -150 val firstLetter: ___ = 'A' val width: ___ = 17.5F val boolVariable: ___ = true val fractionalNumber: ___ = 129.43 } }

War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 2. Kapitel 2

Fragen Sie AI

expand

Fragen Sie AI

ChatGPT

Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen

Suggested prompts:

Fragen Sie mich Fragen zu diesem Thema

Zusammenfassen Sie dieses Kapitel

Zeige reale Beispiele

Awesome!

Completion rate improved to 2.86

bookChallenge: Specify the Data Types

Swipe um das Menü anzuzeigen

Task

Your task is to replace the blanks ___ with the correct data types for each of the variables. For the temperature variable use the integer data type which takes up the least memory provided that the number fits in its range.

Main.java

Main.java

copy
123456789
object Main { def main(args: Array[String]): Unit = { val temperature: ___ = -150 val firstLetter: ___ = 'A' val width: ___ = 17.5F val boolVariable: ___ = true val fractionalNumber: ___ = 129.43 } }

War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 2. Kapitel 2
some-alt