Re: Vectors vs Arrays




"John Bend" <john.bend@xxxxxxxxxxxxxxxxxx> wrote in message
news:43be6751$1_1@xxxxxxxxxxxxxxxxxxxxxxx
> Hello.
>
> Can anyone please suggest some good tutorial links where Java Vectors and
> Arrays are explained and compared?
>
> I'm a proficient programmer but fairly new to Java. Whilst I understand
> arrays I don't fully understand Vectors and when to use them.
>
> Many thanks.

Some other posters have already given you links, but a one sentence
summary might be that arrays are fixed-length, while Vectors are
variable-lengthed. I'm assuming, by the way, that when you say "Arrays", you
actually mean "arrays", and not, for example, "ArrayList" (the latter also
being variable-length).

- Oliver


.



Relevant Pages

  • Vectors vs Arrays
    ... Can anyone please suggest some good tutorial links where Java Vectors and Arrays are explained and compared? ... I'm a proficient programmer but fairly new to Java. ...
    (comp.lang.java)
  • Re: declaring arrays with variable indeces
    ... > Variable-length automatic arrays are allowed in ISO C99, ... > detail to the ISO C99 standard.) ...
    (comp.lang.c)
  • Re: Vectors vs Arrays
    ... John Bend wrote: ... Can anyone please suggest some good tutorial links where Java Vectors and Arrays are explained and compared? ... I'm a proficient programmer but fairly new to Java. ...
    (comp.lang.java)
  • Re: declaring arrays with variable indeces
    ... > Is it possible to declare an array with variable index? ... Variable-length automatic arrays are allowed in ISO C99, ... detail to the ISO C99 standard.) ...
    (comp.lang.c)
  • Re: Vectors vs Arrays
    ... > Can anyone please suggest some good tutorial links where Java Vectors ... > and Arrays are explained and compared? ... Ian Shef 805/F6 * These are my personal opinions ...
    (comp.lang.java)