Matching two map values : An exception occured trying to convert String "A" to type "java.lang.Long"
posted 6 years ago
Below is the code that I am working on. I want to loop through the values of the hashmap "a" . If the value of map "a" matches the value of map "a1". I want to print the corresponding key "hello" in hashmap a1.
But this is the error that I get
What do I do in order to rectify the exception. And how do I get the "hello" displayed in the jsp page?