1. Download our Official Android App: Forums for Android!

Apps Java question how to have a Dictionary Object

Discussion in 'Android Development' started by papachan, Mar 2, 2011.

  1. papachan

    papachan Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    3
    Joined:
    Jan 25, 2011

    Jan 25, 2011
    3
    0
    5
    Android Developer
    Bogot
    I would like to have a kind of Dictionnary Object. I mean I would like to save rows in a Array Object and block each new row which hold the same key.

    How can i do that in JAVA? :thinking:

    Thanks

    Dan
     

    Advertisement

  2. papachan

    papachan Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    3
    Joined:
    Jan 25, 2011

    Jan 25, 2011
    3
    0
    5
    Android Developer
    Bogot
    I find it

    Should use a Set Object


    Set s = new HashSet<String>();
     

Share This Page

Loading...