Week 1
Section outline
-
-
This link will take you to a Git repository that the authors of Head First Kotlin: A Brain-Friendly Guide (one of the two books for our course) have created as a means of sharing the examples from their book with us and other readers.
-
Copy this program to your computer. Run the program. Do you see in this code a use of features of the Kotlin language that are new to you? Can you write very short programs of your own that each illustrate the use of just one or two features of the language?
-
This example creates a game board for the 15 puzzle and moves the tiles in an animation. It shows how a programmer can use familiar Java classes in a Kotlin program. It uses JFrame, Container, JButton, ActionListener, Timer, Font, Color, and other classes.
-
In-class exercise for Friday, 24 September 2021.