Just like arrays, we can access the individual characters of the string using an array index, and just as in the array's case, we get an exception if we try to access an index that does not exist.
La fel ca și în cazul array-urilor, putem accesa caracterele individuale ale șirului utilizând un index de array, și la fel ca în cazul array-urilor, vom obține o excepție dacă încercăm să accesăm un index care nu există.
If you remember our previous lesson, we compared an array to a building, where we have apartments (array's elements), each identified by an apartment number (index, or indices).
Dacă vă amintiți lecția precedentă, am comparat un array cu o clădire, în care avem apartamente (elementele array-ului), fiecare fiind identificat printr-un număr de apartament (index, sau indice).
Er worden alleen voorbeelden gegeven om u te helpen het woord of de woordcombinatie waarop u hebt gezocht, te vertalen. Deze worden niet door ons geselecteerd of gevalideerd en kunnen ongepaste taal bevatten. Wij vragen u melding te maken van voorbeelden die dienen te worden aangepast of verwijderd. Vertalingen met grof of informeel taalgebruik worden meestal rood of oranje gemarkeerd.