(Java: Learning) The doubts in the vocctor class (method of operating elements) http:blog.9cbs.netinber

zhaozj2021-02-16  68

(1):

AddElement (Object N) as the last element in the vector, add new object, N

INSERTETETETETETETETELEMENTAT (Object N, INT INDEX) It inserts a new object n in the location of Index.

SETELEMENTAT (Object N, INT INDEX) It uses object N to replace this element in Index.

(2):

The add () method stores the object to the specific location of the Vactor

ADD () method I am from a J2SK1.4 programming guide, comparing these natural addelement myself

Is there any difference between the add method and the addElement method?

转载请注明原文地址:https://www.9cbs.com/read-19342.html

New Post(0)