Errata

Head First Kotlin

Errata for Head First Kotlin

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released.

The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.

Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted by Date submitted
PDF Page Page. No 374, Chapter 12, The story continues...
First line of the page

A minor formatting error.
'val newPrices' should be in bold, not '.map { it.unitPrice * 2 }'.

Harsh N. Pandya  Feb 02, 2024 
PDF Page Page No. 236, Chapter 8
Last line of code

'var z = w!!.hunger'

This code has stopped working since Kotlin 1.4 was released (due to null check optimizations).
The code won't compile and will show the error 'Unresolved reference: hunger', leading to the output shown in the 'Test drive' section to be mismatched.

Harsh N. Pandya  Feb 02, 2024 
Printed Page 8-15
setup throughout several pages

First project setup is completely changed including how to run first app. running "App" now requires setting up a configuration for the

drew mullen  Jul 25, 2022 
PDF Page 66
2nd paragraph

"becuase" should be "because"

Carlos Bustamante  Nov 13, 2021 
Printed Page 71
Whole page

Can you please verify that you can change the underlying object in a function (change options[2] from "Paper" to "Fred" in the updateArray function) on p. 71 is correct? This seems to contradict other info that function parameters cannot be changed and are local.

Tracey  Jul 12, 2023