This book is now obsolete Please use CSAwesome instead.
9.16. Common MistakesΒΆ
forgetting that
set
replaces the item at the indexforgetting that
remove
at an index moves all items that were to the right of that index left one indexforgetting that
add
at an index moves everything that was at the index and greater to the right one indexincrementing an index when looping through a list even though you removed an item from the list
using
nameList[0]
instead ofnameList.get(0)
.using
nameList.length
instead ofnameList.size()
to get the number of elements in a list
You have attempted of activities on this page