Are lists zero based Java?

Lists (like Java arrays) are zero based . Note that these operations may execute in time proportional to the index value for some implementations (the LinkedList class, for example). Thus, iterating over the elements in a list is typically preferable to indexing through it if the caller does not know the implementation.

Sizin İçin Seçtik  Does List support Java?

Leave a Reply

Your email address will not be published. Required fields are marked *