Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to selectively get values from Map  RSS feed

 
willie wright
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am having lots of trouble figuring out how to get specific values from a Map. I understand that a Map returns objects.

The elements in the map will always stay the same, however, the order can be different.

How can I do something like this:

Object value2 = facetQuery.get("prc:[50 TO 74.99]");
out.println(value2);

Here is my code:


Here is the output:


Thank you!

____________________


Oh, this worked:
Integer value2 = facetQuery.get("prc:[50 TO 74.99]") ;
out.println("this(" + value2 + ")");
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!