8.10 ArrayList Part 2 and exercice
Good morning everyone. We will continue on the array list. Now we will see how to change. The element Of an index in ... particular We will put the name. From our list maList Point We are going to use the set method Which take two ... arguments the first argument is the index? For example We will Edit. the index 1 Rather the index 0 forgives We will ... put 0. Then what do we want to put to the index 0 We will change the name and put. Rock We ... will post. An element So there to display the element 0 maList Point get And there the index 0 Has been replaced ... part Rock We can also transform our list. In a String. To do this, it declared a variable ... String maList Point We will use the toString method. Here we have transformed our list into a ... character string. now that I showed you how to declare, how to add how to delete, how to display elements in ... a list Like php, java, c++ then you had to display The collection The second exercise you had to write a ... program to insert. the Pascale element in first position in the ArrayList Then the second you had to write a program to recover ... the third element from an ArrayList so from the first exercise you had to perform the last two exercise ... I hope you understood the instruction, take the time to do it in the next course we will do the ... correction so to Soon