previous | start | next

Self Check

  1. How do you construct an array of 10 strings? An array list of strings?
  2. What is the content of names after the following statements?
    ArrayList<String> names = new ArrayList<String>();
    names.add("A");
    names.add(0, "B");
    names.add("C");
    names.remove(1);

previous | start | next