On Aug 10, 4:59 pm, JKid314159 <happy27...@yahoo.com> wrote:
> Dear Programmer:
>
> //Create ArrayList
> ArrayList Flintstones = new ArrayList(3);
>
> //Add items
> al.add("Fred");
> al.add("Willma");
> al.add("Barney");
> al.add(1, "BamBam);
> --------------------------------
> Question:
> Willma is in the 1 position. So,
> if I put BamBam in the 1 position Willma be deleted/overwritten?
Neither one not the other. It will be shifted at the right.
PS: If I dare say so, make yourself a favor, JKid, try it in Netbeans,
use code completion and javadoc sensitive help and don't be shy in
exploring systematically the API.
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to javaprogrammingwithpassion@googlegroups.com
To unsubscribe from this group, send email to
javaprogrammingwithpassion-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---