Re: (Vector) get x elementAt
[Prévia] [Próxima] [Prévia por assunto] [Próxima por assunto]
[Índice cronológico] [Índice de assunto]

Re: (Vector) get x elementAt



Sergio writes:
> QUal a diferença entre get(int Index) e elementAt (int Index) na classe
> Vector?
> 
> Sergio
> 
> 
> 

Extraído da documentação da api do java no site da Sun:
________________________________________________________________________
elementAt(int index)

    Returns the component at the specified index.
    
        This method is identical in functionality to the get method
        (which is part of the List interface).
        
        Parameters:
        index - an index into this vector. Returns:
        the component at the specified index. Throws:
        ArrayIndexOutOfBoundsException - if the index is negative or not
        less than the current size of this Vector object. given.See
        Also:
        get(int), List>
________________________________________________________________________

Abraços,
-- Arthur Biazon Machado   <messias@linux.ime.usp.brc Object