Kotlinlearncs.online LogoJava
Return to List

Homework: Practice with Primitive Types 2

Created By: Geoffrey Challen
/ Version: 2020.9.0

Write a snippet of code—not a function— that:

  • declares a variable digit of type char and initializes it to B
  • declares a variable named airTemperature of type double and initializes it to 78.8
  • declares a variable score of type int and initializes it to 99
  • declares a variable named semesterHasStarted of type boolean and initializes it to true

Related Lessons

Stuck? You may find these lessons helpful: