title: How to get value from Map key in java
body: <p>I am trying to receive message attributes from Amazon SQS with the following code :</p>
  
  <pre><code>Map&lt;String, com.amazonaws.services.sqs.model.MessageAttributeValue&gt; attributes = new HashMap&lt;String, com.amazonaws.services.sqs.model.MessageAttributeValue&gt;();
  attributes = message.getMessageAttributes();
  for(String key: attributes.keySet()){
      System.out.println(key + " - "+ attributes.get(key));
  }
  </code></pre>
  
  <p>and it returns the output:</p>
  
  <pre><code>project - {StringValue: 25,StringListValues: [],BinaryListValues: [],DataType: String}
  </code></pre>
  
  <p>I want to get only the value 25. How do I do that?</p>