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: Hello! parallel vectors nightmare

  1. #1
    Junior Member
    Join Date
    Mar 2012
    Posts
    26
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Hello! parallel vectors nightmare

    Hello,
    in my code i have at some point 3 parallel vectors [float(i)<=>string1(i)<=>string2(i)]

    i wanted to eliminate equal float numbers of the 1st vector ,therefore i create a SET which works fine:
    Set unique = new LinkedHashSet();
              Iterator iter;
              for ( iter = unique.iterator(); iter.hasNext();) {
                     Object obj = iter.next();
                     System.out.println("/unique vector/ " + obj);
    Im having difficulty at deleting the correspoding strings of the other 2 vectors,although it sounds pretty easy to do.
    i would appreciate any ideas!
    thnx very much a priori


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: Hello! parallel vectors nightmare

    Please only post a question in one place.
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    Mar 2012
    Posts
    26
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Re: Hello! parallel vectors nightmare

    Quote Originally Posted by Norm View Post
    Please only post a question in one place.
    my bad! though i tried to delete one of them

Similar Threads

  1. Counting Matches in Parallel Arrays
    By dx8292 in forum Object Oriented Programming
    Replies: 3
    Last Post: February 1st, 2012, 09:45 AM
  2. Help with parallel array
    By kid20304 in forum Collections and Generics
    Replies: 3
    Last Post: December 6th, 2011, 05:41 PM
  3. Help with code dealing with parallel arrays.
    By danielp1213 in forum What's Wrong With My Code?
    Replies: 5
    Last Post: November 13th, 2011, 07:43 PM
  4. parallel array newbie
    By NewAtJava in forum What's Wrong With My Code?
    Replies: 5
    Last Post: November 1st, 2011, 09:21 PM
  5. JTrees are a nightmare!
    By Danjb in forum AWT / Java Swing
    Replies: 3
    Last Post: July 4th, 2011, 07:43 AM