Results 1 to 6 of 6

Thread: ????

  1. #1
    siva_vs_siva is offline Member
    Join Date
    Aug 2010
    Posts
    31
    Rep Power
    0

    Default ????

    difference between arraylist and vector in java with example?

  2. #2
    m00nchile is offline Senior Member
    Join Date
    Feb 2010
    Location
    Ljubljana, Slovenia
    Posts
    470
    Rep Power
    5

    Default

    Google and putting effort in your own learning???
    Ever seen a dog chase its tail? Now that's an infinite loop.

  3. #3
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    9

    Default

    The answer is 42. And here, the proof:
    Java Code:
    myArrayList.size() - myVector.size()

  4. #4
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,651
    Blog Entries
    7
    Rep Power
    21

    Default

    Quote Originally Posted by masijade View Post
    The answer is 42. And here, the proof:
    Java Code:
    myArrayList.size() - myVector.size()
    Duh, as everybody knows the - operator for two collection sizes uses base 13, so the real answer (in decimal for us normal earthlings) is 54; so there!

    kindest regards,

    Jos ;-)

  5. #5
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    9

    Default

    Quote Originally Posted by JosAH View Post
    Duh, as everybody knows the - operator for two collection sizes uses base 13, so the real answer (in decimal for us normal earthlings) is 54; so there!

    kindest regards,

    Jos ;-)
    I am never going to live down that ++ + -- - ++ idiocy mistake, am I? ;-)

  6. #6
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,416
    Rep Power
    20

    Default

    No, the answer is 6.

    6 threads started, 6 'questions' asked and never once returned to any of the threads.

    db

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •