Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

I am trying to generate men's preference list and women's preference list  RSS feed

 
Erdene Yadam
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
here is my code
please help me to generate code
i dont know how to use map string list

 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch.
In future, while posting code, please UseCodeTags I have added them this time for you. As you can see, the tags make the code much more readable and easier to understand.

Erdene Yadam wrote:
i dont know how to use map string list

As you know, a Map is a collection of objects, arranged in Key and Value pairs.

Consider
Map<String, List<String>>
Here the Key will be of type String and the Value will be a List of Strings
e.g. Key = "Engineers"
Value = "Tom" "Dick" and "Harry"

Does that answer your question or did you mean something else
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!