Guest User

Untitled

a guest
Mar 19th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. ArrayList al=new ArrayList();
  2. al.add("A");
  3. al.add(10);
  4. al.add("A");
  5. al.add(null);
  6. System.out.println(al);
  7. al.remove(2);
  8. System.out.println(al);
  9. System.out.println(al.get(2));
  10. al.add(2,"M"); // here
  11. System.out.println(al);
  12. al.add("N");
Add Comment
Please, Sign In to add comment