Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Challenge: Primitive Types | Basic Types and Operations
Java Basics (unit tests)
course content

Kursusindhold

Java Basics (unit tests)

Java Basics (unit tests)

1. Getting Started
2. Basic Types and Operations
3. Loops
4. Arrays
5. String

book
Challenge: Primitive Types

Opgave

Swipe to start coding

Fill in the blanks with the appropriate primitive data types.

  1. The first blank needs to hold a whole number.
  2. The second blank should store a decimal number.
  3. The third blank type should have a range of numbers from -32,768 to 32,767.
  4. In the fourth blank, you need to store a single character.
  5. The fifth blank should hold a boolean value (true or false).
  6. The sixth blank stores a floating-point number with less precision than a double.

Løsning

java

solution

Switch to desktopSkift til skrivebord for at øve i den virkelige verdenFortsæt der, hvor du er, med en af nedenstående muligheder
Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 2. Kapitel 2
toggle bottom row

book
Challenge: Primitive Types

Opgave

Swipe to start coding

Fill in the blanks with the appropriate primitive data types.

  1. The first blank needs to hold a whole number.
  2. The second blank should store a decimal number.
  3. The third blank type should have a range of numbers from -32,768 to 32,767.
  4. In the fourth blank, you need to store a single character.
  5. The fifth blank should hold a boolean value (true or false).
  6. The sixth blank stores a floating-point number with less precision than a double.

Løsning

java

solution

Switch to desktopSkift til skrivebord for at øve i den virkelige verdenFortsæt der, hvor du er, med en af nedenstående muligheder
Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 2. Kapitel 2
Switch to desktopSkift til skrivebord for at øve i den virkelige verdenFortsæt der, hvor du er, med en af nedenstående muligheder
Vi beklager, at noget gik galt. Hvad skete der?
some-alt