Results 1 to 2 of 2

Thread: Tagging java program

  1. #1
    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

  2. #2
    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");

Similar Threads

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

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,530,186.20715 seconds with 17 queries