Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: 2D Vector

  1. #1
    Member
    Join Date
    Mar 2010
    Posts
    111
    Thanks
    19
    Thanked 0 Times in 0 Posts

    Default 2D Vector

    which class should I use if I need a 2 dimensional Vector?


  2. #2
    Super Moderator helloworld922's Avatar
    Join Date
    Jun 2009
    Posts
    2,896
    Thanks
    23
    Thanked 619 Times in 561 Posts
    Blog Entries
    18

    Default Re: 2D Vector

    Do you need a matrix-like data structure, or a 2 dimensional vector for math/physics?

    If you need the first, see Multi-dimension arraylist example

    Arraylists are generally preferred over Vectors, but if you need Vectors for whatever reason, simply swap any references to ArrayList with Vector

  3. The Following User Says Thank You to helloworld922 For This Useful Post:

    nasi (April 16th, 2010)

  4. #3
    Junior Member
    Join Date
    May 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: 2D Vector

    great post!

Similar Threads

  1. String Vector
    By nasi in forum What's Wrong With My Code?
    Replies: 4
    Last Post: April 4th, 2010, 12:45 AM
  2. Problem about Vector
    By tohid in forum Collections and Generics
    Replies: 1
    Last Post: March 26th, 2010, 02:44 PM
  3. Difference between Vector and Arraylist
    By Lil_Aziz1 in forum Collections and Generics
    Replies: 4
    Last Post: January 3rd, 2010, 11:03 AM
  4. byte[] from vector
    By perlWhite in forum Collections and Generics
    Replies: 1
    Last Post: August 26th, 2009, 06:10 AM
  5. vector
    By sriraj.kundan in forum Java Theory & Questions
    Replies: 8
    Last Post: August 12th, 2009, 11:17 AM

Tags for this Thread