ERRATA - Page 358 Kindle OCP Java 11 Part 1 ... Hanumant Deshmukh
Posted: Sat Nov 23, 2019 11:23 am
Page 358, The RemoveIf method.
The book says that the example prints [1, 3, 5].
But the list created is unmodifiable/immutable (List.of(...)), so instead UnsupportedOperationException is thrown.
The book says that the example prints [1, 3, 5].
But the list created is unmodifiable/immutable (List.of(...)), so instead UnsupportedOperationException is thrown.