Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-02-2007, 12:29 PM
Member
 
Join Date: Nov 2007
Posts: 1
Sknight126 is on a distinguished road
Joining two 2D Arrays over a common column
I have two 2D arrays, both of type String which I would like to join together. However, the catch is that I want to match up a column in each. For example;

(1)
A | B | C
D | E | F

(2)
F | A | B
C | D | E

When joining the two arrays on column 3 of (1) and 1 of (2), the result should be,

A | B | C | D | E
D | E | F | A | B

Does anyone know of an efficient way to do this?

Thanks

ps

Here is a bit of background info if you're interested. I have taken an XML file with all of Apples iTunes track information and stored in a 2D array in java. One of the columns in this array gives the location on the hard disk of each track.
I also have implemented some music information retrieval techniques to get coordinates of similarity between the songs and I have stored these along with their location in another 2D array in java.
So basically I have two 2D arrays, both of which have a column with the location of the file (which is the only way I could link the two sets of data up). I need to therefore match each tracks iTunes information with it's music properties.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel Column Gajesh Tripathi New To Java 2 04-13-2008 03:26 PM
Joining lines in Eclipse Java Tip Java Tips 0 12-04-2007 12:17 PM
insert row and column and delete row and column daredavil82 New To Java 7 11-30-2007 11:32 AM
Where i have to write the common data to jsp trill JavaServer Pages (JSP) and JSTL 1 08-07-2007 08:35 AM
add a jlist column Alan JCreator 1 05-28-2007 05:51 AM


All times are GMT +3. The time now is 04:24 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org