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-08-2007, 09:17 AM
Member
 
Join Date: Nov 2007
Posts: 7
Gambit17 is on a distinguished road
Adding file names(Help!!)
Hi,

I am busy writing a programm that stores songs(the names, artists, albums-"metadata") into arrays.

At the moment i just ask the user for input, but i would like to ask the user from which file he would like to get the data and then for instance he chooses my music folder, java will extract the metadata from the song files in the my music folder and store it in an array.

At the moment my array are so: String[] strArr = new String[100][4];
with the 4 being equal to artist, track, album, date added,.
could i import the song names and store them in in that array.

is all of this possible?
thnks for your help.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-08-2007, 10:46 AM
Member
 
Join Date: Nov 2007
Posts: 7
bar311 is on a distinguished road
yes.... you have to add another column to your array for the song names
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 11-08-2007, 11:01 AM
Member
 
Join Date: Nov 2007
Posts: 7
Gambit17 is on a distinguished road
why, the song names is stored in the column[4].?
for example
song names will be stored in strArr[0]
song artists will be stored in strArr[1]
song album will be stored in strArr[2]
song dateAdded will be stored in strArr[3]
yip.
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 11-09-2007, 02:54 AM
Member
 
Join Date: Nov 2007
Posts: 7
bar311 is on a distinguished road
ok so that will be it, what do you mean about your question "could i import the song names and store them in in that array" ?
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 11-09-2007, 08:26 AM
Member
 
Join Date: Nov 2007
Posts: 28
carderne is on a distinguished road
What he means is that he wants to create a program that will import song names from the metadata stored within the songs (that iTunes/WMP creates).

He then wants to store the metadata in a nested array:
String[][] songs = new String[amountSongs][4]
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
Adding file contents to Choice component Java Tip Java Tips 0 02-07-2008 10:06 AM
Names pipes in java Zept Networking 0 01-27-2008 06:06 AM
Drive names alwz_nikhil New To Java 0 11-28-2007 11:04 AM
how to get the names of the files mary Advanced Java 2 08-05-2007 05:01 AM
building file and variable names from variables madad2005 New To Java 2 07-18-2007 05:47 PM


All times are GMT +3. The time now is 08:14 PM.


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