To Lecture Notes
IT 372 -- April 27, 2026
Review Questions
- 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.
- 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
- How do you write a Kotlin main method with command line parameters?
- What is the Kotlin range operator?
- What is the Unit datatype?
- What are the similarities and differences between Java and Kotlin that you have
seen so far?
- Translate the BeerAdvisor class from the
BeerAdvisor Example into Kotlin and test it.
- Look at these sections in the Introduction to Kotlin
document:
Named Parameters Arrays Lists Classes
- Translate the BeerAdvisor class from the BeerAdvisor
Example to Kotlin and test this class in the Kotlin playground.