Code example for ArrayList

Methods: add

0
    assertNull(bundle.getStringArray("bar"));
  } 
 
  @Test 
  public void testStringArrayList() { 
    ArrayList<String> list = new ArrayList<String>();
    list.add("a");
 
    bundle.putStringArrayList("foo", new ArrayList<String>(list));
    Assert.assertEquals(list, bundle.getStringArrayList("foo"));
    assertNull(bundle.getStringArrayList("bar"));
  } 
 
  @Test 
  public void testIntegerArrayList() { 
    ArrayList<Integer> list = new ArrayList<Integer>();
    list.add(100);
 
    bundle.putIntegerArrayList("foo", new ArrayList<Integer>(list));
    Assert.assertEquals(list, bundle.getIntegerArrayList("foo"));
Connect your IDE to all the code out there  Get Codota for Java