Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

update db

 
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


this is the class by which i can get the trackId of the song present in the db.




this is the class to get the trackId of the songs which are currently in the xml file.

now i want to compare those two different trackId and if there is any update in the xml (i.e. entry of the new song with different trackId or deletion of old song) after which trackId will not match each other then change accordingly in DB via sql query through java. please guide me about how can i be able to compare those trackid one by one and make the program further. i also wan to do that in the separate thread class which continously do the same task.

thanks in adavance.
 
lowercase baba
Posts: 13091
67
Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I doubt you will get much help here with a post like that. If you haven't read it, you should probably check out the entries in our HowToAskQuestionsOnJavaRanch (<--click that) FAQ. Generally speaking, overly broad or general "guide me" questions don't work well here.

However, if you have a specific, focused question, you will get more help than you could ever hope for.
 
duhit Choudhary
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i am sorry about my way of asking question. but i just want the solution about how can i be able to compare those two different trackId, rest all thing i am able to do.
thanks by the way.. from the next time i keep that thing in mind.
 
Ranch Hand
Posts: 72
Eclipse IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

duhit Choudhary wrote:how can i be able to compare those two different trackId


well, cant you take trackIds from the hashmap (using keySet()) and compare with the trackIds in list through nested for loops?
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic