Lesson 2: Kotlin Control Flow

Outline:

  1. Questions?
  2. Kotlin basics
    • defining variables
    • collections
  3. Control flow in Kotlin: conditionals and loops
    • if/else and when statements
    • for loops
    • while loops
    • do-while loops
    • examples: Exercise 1
  4. Wrap-up

After class

Try the classwork question on functions! Turn in the classwork on Friday.

What’s next

Upcoming events/assessments:

  • Software installation sessions with Dylan:
    • Wednesday, April 2nd, 7pm-9pm in Olin 308
  • Quiz 1 will be next Monday and cover the first 4-5 Quiz Learning Objectives
  • Assignment 1 will be released today and due next Wednesday

What you should do now:

  • Read the syllabus!
  • Read the description of Assignment 1
  • The readings (see below)

Reading assignment (to be completed by the next class):

Kotlin basics, cont’d (from today):

Kotlin basics, cont’d (for next time):