Results 1 to 5 of 5

Thread: Vector

  1. #1
    MuslimCoder is offline Senior Member
    Join Date
    Jan 2009
    Posts
    119
    Rep Power
    0

    Smile Vector

    Hello,

    I am new to using ArrayList and Vectors, I usually use Array. Though I am working on an application that comes that is suppose to store numbers (in tuple) that have been generated by some algorithm.

    It is suppose to work somethig like this :

    The tuples is generated like (d,m)
    and then added to the vector.

  2. #2
    Norberhuis is offline Member
    Join Date
    Jan 2009
    Location
    Delft
    Posts
    13
    Rep Power
    0

    Default

    I would like to help you, but I do not know what problem you are having.

  3. #3
    RamyaSivakanth's Avatar
    RamyaSivakanth is offline Senior Member
    Join Date
    Apr 2009
    Location
    Chennai
    Posts
    765
    Rep Power
    6

    Default

    Gothru this link for Vector
    Vector**Collections Data Structure**Java
    Ramya:cool:

  4. #4
    MuslimCoder is offline Senior Member
    Join Date
    Jan 2009
    Posts
    119
    Rep Power
    0

    Default

    Thanks, sorrry Norberhuis... The problem was I did'nt quite know how to add the elements to the Vector. I checked the API and ithere is an add(Element o) method, though I want to add tuples ...

  5. #5
    PhHein's Avatar
    PhHein is offline Senior Member
    Join Date
    Apr 2009
    Location
    Germany
    Posts
    1,430
    Rep Power
    7

    Default

    Implement a Tuple class that wraps your tuples and add objects of that class to the Vector or ArrayList.

Similar Threads

  1. Replies: 1
    Last Post: 04-06-2009, 06:45 AM
  2. vector - get
    By natdizzle in forum New To Java
    Replies: 2
    Last Post: 01-02-2009, 04:09 AM
  3. sort a vector
    By jithan in forum Advanced Java
    Replies: 1
    Last Post: 06-18-2008, 03:11 PM
  4. Vector help
    By king_arthur in forum New To Java
    Replies: 3
    Last Post: 01-22-2008, 07:33 PM
  5. vector problem
    By mambo_jumbo in forum New To Java
    Replies: 1
    Last Post: 11-17-2007, 10:44 PM

Posting Permissions

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