• Post Reply Bookmark Topic Watch Topic
  • New Topic

Searching Algorithm  RSS feed

 
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,

I want to make a music utility,where when I type any letter in JTextField ,matching songs start displaying in JTexttArea,so for this I used KeyEventListener but,I am wondering about algorithm which could match songs letter by letter (as in google ).
Also when we select a song and press a Button(Play) It should strat playing the song.


Please Help .

 
Saloon Keeper
Posts: 7993
143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, you could simply make a new list and then iterate over all the songs and add them to the list if their name matches what you've entered so far.

Show us what you're working on and where you're getting stuck.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!