Code example for Vector

0
import java.util.List; 
import java.util.Vector; 
 
public class Scenario { 
 
  private List<ScenarioAction> actionList = new Vector<ScenarioAction>(); 
 
  public void add(ScenarioAction action) { 
    actionList.add(action); 
  } 
 
  public List<ScenarioAction> getActionList() { 
    return new ArrayList<ScenarioAction>(actionList); 
  } 
 
  public int size() { 
    return actionList.size(); 
  } 
 
  public ScenarioAction get(int i) { 
    return (ScenarioAction) actionList.get(i);