Bifalgorithm post
Let's talk about array lists in Java. So here we have an array list of strings called items. We add the letter A and then we add the letter B and then we add the letter C and then we add zero and a D. This basically means you want to add the letter D at position zero. So this is the front of the list. And here we want to remove item number three. So let's put in our indexes and the item at position three is C. So let's remove that. And here we want to add zero E. So we want to put E in the front and so the answer is C, E-D-A-B.
Let's talk about array lists in Java. So here we have an array list of strings called items. We add the letter A and then we add the letter B and then we add t…
Ideas in this flowchart
- Array Lists in Java
- Array List Operations
- Add Elements
- Add A
- Add B
- Add C
- Add D at Position 0
- Remove Elements
- Remove Item at Position 3
- Add E at Position 0
- Final List Order
- C, E-D-A-B