To Lecture Notes

IT 372 -- April 27, 2026

Review Questions

  1. Look at the modifications needed in the GroceryItem Example in Exercise 2 of the April 22 Notes to restore the data when the device is rotated.
  2. Look at the ChineseHoroscope Example. This example shows how to dynamically add options to a Spinner widget. Here are the source code files:
    activity_main.xml  MainActivity.js
  3. How do you write a Kotlin main method with command line parameters?
  4. What is the Kotlin range operator?
  5. What is the Unit datatype?
  6. What are the similarities and differences between Java and Kotlin that you have seen so far?
  7. Translate the BeerAdvisor class from the BeerAdvisor Example into Kotlin and test it.

Introduction to Kotlin