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

Contenuti del Corso

Introduction to Scala

Introduction to Scala

1. Getting Started
2. Variables and Data Types
3. Conditional Statements and Loops
4. Arrays
5. Strings

book
Challenge: 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.

java

Main

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 } }

Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 2. Capitolo 2

Chieda ad AI

expand
ChatGPT

Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione

course content

Contenuti del Corso

Introduction to Scala

Introduction to Scala

1. Getting Started
2. Variables and Data Types
3. Conditional Statements and Loops
4. Arrays
5. Strings

book
Challenge: 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.

java

Main

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 } }

Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 2. Capitolo 2
Siamo spiacenti che qualcosa sia andato storto. Cosa è successo?
some-alt