The Java sample code in section 3.5.1 performs index-based operations on the List input with int i. This might incur a performance penalty depending on the list implementation of O(n²). Lists are best acceessed with iterators. Don't use bad practices in samples.
The Java sample code in section 3.5.1 performs index-based operations on the
Listinput withint i. This might incur a performance penalty depending on the list implementation ofO(n²). Lists are best acceessed with iterators. Don't use bad practices in samples.