This book is now obsolete Please use CSAwesome instead.
9.16. Common MistakesΒΆ
forgetting that
setreplaces the item at the indexforgetting that
removeat an index moves all items that were to the right of that index left one indexforgetting that
addat 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.lengthinstead ofnameList.size()to get the number of elements in a list
You have attempted of activities on this page
