This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Java in General and the fly likes need to query on list of map object Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "need to query on list of map object " Watch "need to query on list of map object " New topic
Author

need to query on list of map object

sudheer kiran
Ranch Hand

Joined: Jun 26, 2008
Posts: 237

hi all i have a List<Map<String,String>>> tableRowsMap.

its a list of map.
each map consists column name as key and row value as value.

my question is :
can i query on this list.
i need to find our the row for which i will pass some parameters.
please suggest.

i have option to change List<Map<String,String>>> to any collection type also.

Sudheer
SCWCD, SCJP 5
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14279
    
  21

You can just loop through the list, and inside that loop check if the map contains what you're looking for.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: need to query on list of map object