Code example for List

Methods: clear

0
    public int size(){ 
        return _data.size();
    } 
 
    public void clear(){ 
        _data.clear();
    } 
 
    public T get( int i ){
        return _data.get( i );
    } 
     
    public String toString(){
        return _data.toString();
    } 
 
    private final List<T> _data = new ArrayList<T>();
}