Results 1 to 1 of 1
- 11-02-2007, 11:29 AM #1
Member
- Join Date
- Nov 2007
- Posts
- 1
- Rep Power
- 0
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.
Similar Threads
-
insert row and column and delete row and column
By daredavil82 in forum New To JavaReplies: 13Last Post: 09-22-2011, 06:10 PM -
Excel Column
By Gajesh Tripathi in forum New To JavaReplies: 2Last Post: 04-13-2008, 02:26 PM -
Joining lines in Eclipse
By Java Tip in forum Java TipReplies: 0Last Post: 12-04-2007, 11:17 AM -
Where i have to write the common data to jsp
By trill in forum JavaServer Pages (JSP) and JSTLReplies: 1Last Post: 08-07-2007, 07:35 AM -
add a jlist column
By Alan in forum JCreatorReplies: 1Last Post: 05-28-2007, 04:51 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks