GAUTAM
asked on
Map Comparion Doubt
Hi Experts...
I have a map whose values are displayed as shown below.
I need to display the results of the comparison only if the key is present in another map say LinkedHashMap<String,Integ er> firstMap = new LinkedHashMap<String,Integ er>();
How do i achieve this.
Please help...
I have a map whose values are displayed as shown below.
I need to display the results of the comparison only if the key is present in another map say LinkedHashMap<String,Integ
How do i achieve this.
Please help...
for(final Entry<String,Boolean> entry : comparisonResult.entrySet())
{
System.out.println("Entry:" + entry.getKey() + ", value: " + entry.getValue());
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
if( map.get( entry.getKey( ) ) == null )
{
//value doesn't exist
}