Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



Tagging java program

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 01-04-2011
Member
 
Join Date: Mar 2011
Posts: 6
question Tagging java program
  

...... how can i tag an array of string in java ?
i want to make an array of strings and tag them like :
m funny
s funny
t boring
k boring

then if the user can search for them by tagging
like
search : funny
::
m,s

Reply With Quote
  #2  
Old 01-04-2011
Member
 
Join Date: Jan 2006
Posts: 605
Re: Tagging java program

The below code might help you:

Code:
// key is string, value all the tags for the string 
HashMap<String, HashSet<String>> invertedTags = new HashMap<String, HashSet<String>>(); // tags of the word: "m" 
Set<String> tags = invertedTags.get("m");
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Tagging java program"
Thread Thread Starter Forum Replies Last Post
How to run java applet program using cmd Rao's Software Development 3 07-01-2012 03:35 PM
Dr. Java program bamggut29 Software Development 2 26-11-2011 04:24 AM
Don't know how to run the java bean program Reema_n Software Development 5 23-12-2009 11:01 AM
Mp3 tagging program Harvey Windows Software 5 27-08-2009 10:04 AM
Link List Example in Java Sample program in Java trickson Software Development 2 04-08-2009 08:23 PM


All times are GMT +5.5. The time now is 09:05 PM.